FIX: Disable auto-refresh when Double Commander window is in the background (issue #606)

(cherry picked from commit 17c4b7f460)
This commit is contained in:
Alexander Koblov 2024-03-31 13:13:06 +03:00
commit f9a283d679

View file

@ -3452,6 +3452,12 @@ var
CurrentTime: TDateTime;
AddToPending: Boolean;
begin
if (not FReloadNeeded) and CheckIfDelayReload then
begin
// Delay reloading
FReloadNeeded:= True;
Exit;
end;
if not (csDestroying in ComponentState) and
not FReloadNeeded and
String(IncludeTrailingPathDelimiter(EventData.Path)).StartsWith(CurrentPath) then