Browse Source

ADD: Flush doublecmd.xml to the disk

Alexander Koblov 1 month ago
parent
commit
44b35f2e19
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/doublecmd/dcxmlconfig.pas

+ 2 - 1
components/doublecmd/dcxmlconfig.pas

@@ -553,11 +553,12 @@ end;
 
 procedure TXmlConfig.WriteToFile(const AFilename: String);
 var
-  FileStream: TStream;
+  FileStream: TFileStreamEx;
 begin
   FileStream := TFileStreamEx.Create(AFilename, fmCreate or fmShareDenyWrite);
   try
     WriteToStream(FileStream);
+    FileStream.Flush;
   finally
     FileStream.Free;
   end;