ADD: Auto refresh - Don't react to notifications while in the background

This commit is contained in:
Alexander Koblov 2009-03-21 13:09:13 +00:00
commit 068097536c

View file

@ -3126,11 +3126,13 @@ end;
procedure TfrmMain.LeftFrameOnWatcherNotifyEvent(NotifyEvent: TWatchFilter);
begin
if (not Focused) and (watch_only_foreground in gWatchDirs) then Exit;
FrameLeft.RefreshPanel;
end;
procedure TfrmMain.RightFrameOnWatcherNotifyEvent(NotifyEvent: TWatchFilter);
begin
if (not Focused) and (watch_only_foreground in gWatchDirs) then Exit;
FrameRight.RefreshPanel;
end;