File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1717using IPConfig . Helpers ;
1818using IPConfig . Languages ;
1919using IPConfig . Models ;
20+ using IPConfig . Properties ;
2021using IPConfig . ViewModels ;
2122using IPConfig . Views ;
2223
@@ -115,6 +116,13 @@ protected override void OnStartup(StartupEventArgs e)
115116 DefaultValue = Current . FindResource ( typeof ( Window ) )
116117 } ) ;
117118
119+ if ( Settings . Default . UpgradeRequired )
120+ {
121+ Settings . Default . Upgrade ( ) ;
122+ Settings . Default . UpgradeRequired = false ;
123+ Settings . Default . Save ( ) ;
124+ }
125+
118126 var mainWindow = Services . GetRequiredService < MainWindow > ( ) ;
119127 mainWindow . Show ( ) ;
120128 }
Original file line number Diff line number Diff line change @@ -146,13 +146,6 @@ private void Loaded()
146146 {
147147 var cultures = LangSource . GetAvailableCultures ( ) . OrderBy ( x => x . Name ) ;
148148 Languages = new ( cultures ) ;
149-
150- if ( Settings . Default . UpgradeRequired )
151- {
152- Settings . Default . Upgrade ( ) ;
153- Settings . Default . UpgradeRequired = false ;
154- Settings . Default . Save ( ) ;
155- }
156149 }
157150
158151 [ RelayCommand ]
You can’t perform that action at this time.
0 commit comments