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)
9696 procedure DeleteProxyServerSection ;
9797 // / <summary>Deletes unused Prefs:News section.</summary>
9898 procedure DeleteNewsPrefs ;
99+ // / <summary>Deletes unused Prefs:Updating section.</summary>
100+ procedure DeleteUpdatingPrefs ;
99101 // / <summary>Effectively renames MainWindow section used prior to version
100102 // / 11 as WindowState:MainForm.</summary>
101103 procedure RenameMainWindowSection ;
@@ -312,6 +314,13 @@ procedure TUserConfigFileUpdater.DeleteProxyServerSection;
312314 DeleteIniSection(' ProxyServer' , CfgFileName);
313315end ;
314316
317+ procedure TUserConfigFileUpdater.DeleteUpdatingPrefs ;
318+ begin
319+ if not TFile.Exists(CfgFileName, False) then
320+ CreateNewFile;
321+ DeleteIniSection(' Prefs:Updating' , CfgFileName);
322+ end ;
323+
315324class function TUserConfigFileUpdater.GetFileVersion : Integer;
316325begin
317326 Result := FileVersion;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ procedure TFirstRun.UpdateUserCfgFile(out Changes: TFirstRunCfgChangeSet);
242242 begin
243243 fUserConfigFile.DeleteNewsPrefs;
244244 fUserConfigFile.DeleteProxyServerSection;
245+ fUserConfigFile.DeleteUpdatingPrefs;
245246 end ;
246247
247248 { $IFNDEF PORTABLE}
You can’t perform that action at this time.
0 commit comments