From 3a509918601d42a3bff762bbaa24f108e886157c Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Tue, 10 Mar 2026 10:58:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ALMainWindow):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=9C=80=E5=B0=8F=E5=8C=96=E5=88=B0=E6=89=98?= =?UTF-8?q?=E7=9B=98=E5=9B=BE=E6=A0=87=E5=90=8E=EF=BC=8C=E9=80=80=E5=87=BA?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/ALMainWindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/ALMainWindow.py b/src/gui/ALMainWindow.py index a4a670a..320b860 100644 --- a/src/gui/ALMainWindow.py +++ b/src/gui/ALMainWindow.py @@ -169,6 +169,10 @@ class ALMainWindow(MsgBase, QMainWindow, Ui_ALMainWindow): event: QCloseEvent ): + if not self.isVisible(): + self.showNormal() + event.ignore() + return if self.__msg_queue_timer and self.__msg_queue_timer.isActive(): self.__msg_queue_timer.stop() if self.__timer_task_timer and self.__timer_task_timer.isActive(): @@ -182,7 +186,7 @@ class ALMainWindow(MsgBase, QMainWindow, Ui_ALMainWindow): if self.__alConfigWidget: self.__alConfigWidget.close() # the config widget is already deleted in the 'self.onConfigWidgetClosed' - super().closeEvent(event) + QMainWindow.closeEvent(self, event) def appendToTextEdit(