1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-10 08:34:06 +02:00

Fix crash if reloading plugins reports errors before the main window appears

This commit is contained in:
chylex 2020-06-08 09:03:22 +02:00
parent cefdadd53a
commit 2fe058d9cb

View File

@ -263,9 +263,7 @@ private void trayIcon_ClickClose(object sender, EventArgs e){
private void plugins_Reloaded(object sender, PluginErrorEventArgs e){
if (e.HasErrors){
this.InvokeAsyncSafe(() => { // TODO not needed but makes code consistent...
FormMessage.Error("Error Loading Plugins", "The following plugins will not be available until the issues are resolved:\n\n" + string.Join("\n\n", e.Errors), FormMessage.OK);
});
FormMessage.Error("Error Loading Plugins", "The following plugins will not be available until the issues are resolved:\n\n" + string.Join("\n\n", e.Errors), FormMessage.OK);
}
if (isLoaded){