FIX: Check if application is active instead of checking main form's focus if FileWatcher should not work when application is in the background. This fixes the issue where refreshing file list is not working even when DC is active.

This commit is contained in:
cobines 2010-02-02 02:43:50 +00:00
commit 74faadd4cd

View file

@ -2945,7 +2945,7 @@ var
FileView: TFileView;
begin
// if not active and refresh only in foreground then exit
if (not Focused) and (watch_only_foreground in gWatchDirs) then Exit;
if (watch_only_foreground in gWatchDirs) and (not Application.Active) then Exit;
if not (Sender is TFileViewNotebook) then Exit;
FileView := (Sender as TFileViewNotebook).ActiveView;