Browse Source

Config.Json small change

Unknown 6 năm trước cách đây
mục cha
commit
bbac856564
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Quick.Config.Json.pas

+ 1 - 0
Quick.Config.Json.pas

@@ -234,6 +234,7 @@ end;
 
 
 procedure TAppConfigJsonProvider.SetReloadIfFileChanged(const Value: Boolean);
 procedure TAppConfigJsonProvider.SetReloadIfFileChanged(const Value: Boolean);
 begin
 begin
+  if Value = fReloadIfFileChanged then Exit;
   fReloadIfFileChanged := Value;
   fReloadIfFileChanged := Value;
   if Assigned(fFileMonitor) then fFileMonitor.Free;
   if Assigned(fFileMonitor) then fFileMonitor.Free;
   if fReloadIfFileChanged then CreateFileMonitor;
   if fReloadIfFileChanged then CreateFileMonitor;