浏览代码

Quick.FileMonitor fpc small fix

Unknown 6 年之前
父节点
当前提交
b98c5eb3ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Quick.FileMonitor.pas

+ 1 - 1
Quick.FileMonitor.pas

@@ -166,7 +166,7 @@ end;
 
 
 procedure TFileMonitor.SetEnabled(Status : Boolean);
 procedure TFileMonitor.SetEnabled(Status : Boolean);
 begin
 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
   if fEnabled <> Status then
   begin
   begin