File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ TUserConfigFileUpdater = class(TConfigFileUpdater)
96
96
procedure DeleteProxyServerSection ;
97
97
// / <summary>Deletes unused Prefs:News section.</summary>
98
98
procedure DeleteNewsPrefs ;
99
+ // / <summary>Deletes unused Prefs:Updating section.</summary>
100
+ procedure DeleteUpdatingPrefs ;
99
101
// / <summary>Effectively renames MainWindow section used prior to version
100
102
// / 11 as WindowState:MainForm.</summary>
101
103
procedure RenameMainWindowSection ;
@@ -312,6 +314,13 @@ procedure TUserConfigFileUpdater.DeleteProxyServerSection;
312
314
DeleteIniSection(' ProxyServer' , CfgFileName);
313
315
end ;
314
316
317
+ procedure TUserConfigFileUpdater.DeleteUpdatingPrefs ;
318
+ begin
319
+ if not TFile.Exists(CfgFileName, False) then
320
+ CreateNewFile;
321
+ DeleteIniSection(' Prefs:Updating' , CfgFileName);
322
+ end ;
323
+
315
324
class function TUserConfigFileUpdater.GetFileVersion : Integer;
316
325
begin
317
326
Result := FileVersion;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ procedure TFirstRun.UpdateUserCfgFile(out Changes: TFirstRunCfgChangeSet);
242
242
begin
243
243
fUserConfigFile.DeleteNewsPrefs;
244
244
fUserConfigFile.DeleteProxyServerSection;
245
+ fUserConfigFile.DeleteUpdatingPrefs;
245
246
end ;
246
247
247
248
{ $IFNDEF PORTABLE}
You can’t perform that action at this time.
0 commit comments