mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Disable auto-refresh when Double Commander window is in the background (issue #606)
(cherry picked from commit 17c4b7f460)
This commit is contained in:
parent
1f23c8b262
commit
f9a283d679
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue