File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ public class Globals : BaseViewModel
2626 public UserAppSettings Settings { get => _settings ; set { _settings = value ; OnPropertyChanged ( ) ; } }
2727 private bool _settingsLoadedOnce = false ;
2828
29- public void SaveSettings ( )
29+ public void SaveSettings ( bool force = false )
3030 {
31- if ( ! _settingsLoadedOnce )
31+ if ( ! force && _settingsLoadedOnce )
3232 return ;
3333 Tools . Logs . Add ( "Saving settings.." , false ) ;
3434 try
@@ -87,7 +87,7 @@ public void LoadSettings()
8787 Tools . Logs . Add ( "Failed to load settings" , false ) ;
8888 Tools . Logs . AddException ( ex ) ;
8989 Settings = new UserAppSettings ( ) ;
90- SaveSettings ( ) ;
90+ SaveSettings ( true ) ;
9191 Tools . Logs . Add ( "Created new settings file" , false ) ;
9292 }
9393 Logs . LoggingEnabled = Settings . Logging ;
You can’t perform that action at this time.
0 commit comments