Forráskód Böngészése

Quick.FileMonitor fpc small fix

Unknown 6 éve
szülő
commit
b98c5eb3ca
1 módosított fájl, 1 hozzáadás és 1 törlés
  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