File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,10 +112,6 @@ public void Save()
112112 JsonSerializerOptions options = new ( ) ;
113113 options . WriteIndented = true ;
114114 File . WriteAllText ( _settingsFile , JsonSerializer . Serialize ( Settings , options ) ) ;
115- /* FIXME: For some reason unknown to me, App.MainWindow is null here, but only if the Settings were generated before e.g. on first launch
116- * No biggy in that case as nothing has been customized yet, but depending on the reason this might cause problems.
117- */
118- App . MainWindow . LoadSettings ( ) ;
119115 }
120116 catch ( Exception ex )
121117 {
@@ -135,6 +131,7 @@ public void Set(string setting, object value)
135131
136132 property . SetValue ( Settings , Convert . ChangeType ( value , property . PropertyType ) ) ;
137133 Save ( ) ;
134+ App . MainWindow . LoadSettings ( ) ;
138135 }
139136
140137}
You can’t perform that action at this time.
0 commit comments