From 65c5b645a8c24d410811c55ba7a4e4b2c34fb109 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Sat, 2 Mar 2024 20:06:21 +0100 Subject: [PATCH] Small bugfix: Do not allow to open the autotdp window more than once. --- app/Settings.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Settings.cs b/app/Settings.cs index b5dcbcea..9a8e1a2a 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -279,6 +279,11 @@ namespace GHelper private void ButtonAutoTDP_Click(object? sender, EventArgs e) { + if (autoTdpUi is not null) + { + return; + } + autoTdpUi = new AutoTDPUI(); autoTdpUi.FormClosed += AutoTdpUi_FormClosed; autoTdpUi.Disposed += AutoTdpUi_Disposed;