Periodically store portable settings file, each 60 seconds. In case of a crash, the user does not loose dialog settings and whatever was customized. See http://www.heidisql.com/forum.php?t=18144#p18243

This commit is contained in:
Ansgar Becker
2015-04-26 13:31:08 +00:00
parent 1bc2c32be3
commit 7ab04b5254
3 changed files with 29 additions and 3 deletions

View File

@ -226,8 +226,10 @@ type
procedure ResetPath;
property SessionPath: String read FSessionPath write SetSessionPath;
property PortableMode: Boolean read FPortableMode;
property Writes: Integer read FWrites;
procedure ImportSettings(Filename: String);
procedure ExportSettings(Filename: String);
procedure ExportSettings(Filename: String); overload;
procedure ExportSettings; overload;
end;
@ -3792,6 +3794,11 @@ begin
end;
procedure TAppSettings.ExportSettings;
begin
ExportSettings(FSettingsFile);
end;
end.