From d8bd7165a731a998ab35804f8a7214e91195228a Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Fri, 1 Oct 2021 23:38:59 +0200 Subject: [PATCH] Visplane Explorer: fixed a bug where changing the settings after re-entering the mode would result in a crash. Fixes #624 --- Source/Plugins/VisplaneExplorer/VisplaneExplorerMode.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Plugins/VisplaneExplorer/VisplaneExplorerMode.cs b/Source/Plugins/VisplaneExplorer/VisplaneExplorerMode.cs index 0b5da0b9..a04260ef 100755 --- a/Source/Plugins/VisplaneExplorer/VisplaneExplorerMode.cs +++ b/Source/Plugins/VisplaneExplorer/VisplaneExplorerMode.cs @@ -330,6 +330,9 @@ namespace CodeImp.DoomBuilder.Plugins.VisplaneExplorer public override void OnDisengage() { CleanUp(); + + BuilderPlug.InterfaceForm.OnVisplaneSettingsChanged -= OnVisplaneSettingsChanged; + base.OnDisengage(); }