File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -127,12 +127,15 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
127127
128128 AbstractPluginEnvironment . PreStartPluginExecutablePathUpdate ( _settings ) ;
129129
130- // TODO: Clean InternationalizationManager.Instance and InternationalizationManager.Instance.GetTranslation in future
131- Ioc . Default . GetRequiredService < Internationalization > ( ) . ChangeLanguage ( _settings . Language ) ;
132-
133130 PluginManager . LoadPlugins ( _settings . PluginSettings ) ;
131+
132+ // Register ResultsUpdated event after all plugins are loaded
134133 Ioc . Default . GetRequiredService < MainViewModel > ( ) . RegisterResultsUpdatedEvent ( ) ;
135134
135+ // Change language after all plugins are initialized
136+ // TODO: Clean InternationalizationManager.Instance and InternationalizationManager.Instance.GetTranslation in future
137+ Ioc . Default . GetRequiredService < Internationalization > ( ) . ChangeLanguage ( _settings . Language ) ;
138+
136139 Http . Proxy = _settings . Proxy ;
137140
138141 await PluginManager . InitializePluginsAsync ( ) ;
You can’t perform that action at this time.
0 commit comments