From 969aeb2c5658463f7ab7b1b615bf566b54bd3d55 Mon Sep 17 00:00:00 2001 From: Krad Date: Tue, 11 Jan 2022 09:00:25 +0800 Subject: [PATCH] Temp fix for error prompt --- src/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0021e59..48b9caa 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -79,6 +79,7 @@ MainWindow::MainWindow(QWidget* parent) : ui->centralWidget->setLayout(layout); this->setWindowFlags(Qt::Window); connect(EventCenter::Default(), &EventCenter::DeviceErrorRaise, [=](QObject* parent, QObject* msg) { + if (!this->ui->centralWidget->isVisible()) return; //默认旧模式 if (!msgDialog) { msgDialog = new GUIMessageDialog(this);