mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +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.PluginLoaded -= onPluginLoaded;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
window.OnExit += () =>
|
window.OnExit += () =>
|
||||||
{
|
{
|
||||||
|
Windows.Remove(window);
|
||||||
|
WindowNames.Remove(window.Title);
|
||||||
|
blockWindowsClosing = false;
|
||||||
|
window.Close();
|
||||||
|
blockWindowsClosing = true;
|
||||||
pluginSettings.Enabled = false;
|
pluginSettings.Enabled = false;
|
||||||
};
|
};
|
||||||
window.PluginLoaded += onPluginLoaded;
|
window.PluginLoaded += onPluginLoaded;
|
||||||
|
|||||||
Reference in New Issue
Block a user