mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 00:46:12 +02:00
Properly remove the plugin window from the lists in the main window when an exception occurs
This commit is contained in:
@@ -245,8 +245,14 @@ namespace DesktopMagic
|
||||
window.PluginLoaded -= onPluginLoaded;
|
||||
});
|
||||
};
|
||||
|
||||
window.OnExit += () =>
|
||||
{
|
||||
Windows.Remove(window);
|
||||
WindowNames.Remove(window.Title);
|
||||
blockWindowsClosing = false;
|
||||
window.Close();
|
||||
blockWindowsClosing = true;
|
||||
pluginSettings.Enabled = false;
|
||||
};
|
||||
window.PluginLoaded += onPluginLoaded;
|
||||
|
||||
Reference in New Issue
Block a user