mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
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:
parent
025d73be0b
commit
74faadd4cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue