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 () =>
127
127
128
128
AbstractPluginEnvironment . PreStartPluginExecutablePathUpdate ( _settings ) ;
129
129
130
- // TODO: Clean InternationalizationManager.Instance and InternationalizationManager.Instance.GetTranslation in future
131
- Ioc . Default . GetRequiredService < Internationalization > ( ) . ChangeLanguage ( _settings . Language ) ;
132
-
133
130
PluginManager . LoadPlugins ( _settings . PluginSettings ) ;
131
+
132
+ // Register ResultsUpdated event after all plugins are loaded
134
133
Ioc . Default . GetRequiredService < MainViewModel > ( ) . RegisterResultsUpdatedEvent ( ) ;
135
134
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
+
136
139
Http . Proxy = _settings . Proxy ;
137
140
138
141
await PluginManager . InitializePluginsAsync ( ) ;
You can’t perform that action at this time.
0 commit comments