Browse Source

Quick.FileMonitor fpc small fix

Unknown 6 years ago
parent
commit
b98c5eb3ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Quick.FileMonitor.pas

+ 1 - 1
Quick.FileMonitor.pas

@@ -166,7 +166,7 @@ end;
 
 procedure TFileMonitor.SetEnabled(Status : Boolean);
 begin
-  if (Status = True) and (Started = False) then Start;
+  if (Status) and {$IFNDEF FPC}(not Started){$ELSE}(Suspended){$ENDIF} then Start;
 
   if fEnabled <> Status then
   begin