From eb6e0461fccde7bb7c6db19a2c4725dc098afddf Mon Sep 17 00:00:00 2001 From: Krad Date: Tue, 19 Oct 2021 14:11:45 +0800 Subject: [PATCH] Fix message dialog show not full screen bug. --- src/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 38dfb84..b3d7000 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -92,7 +92,7 @@ MainWindow::MainWindow(QWidget *parent) : msgDialog->showMessage("Something went error!"); msgDialog->showExitButton(); msgDialog->stopLoading(); - msgDialog->show(); + msgDialog->showFullScreen(); }); connect(EventCenter::Default(),&EventCenter::InvokeOperationStart,[=](QObject*,QObject* msg){ if (!msgDialog) msgDialog = new GUIMessageDialog(this); @@ -105,7 +105,7 @@ MainWindow::MainWindow(QWidget *parent) : } msgDialog->hideExitButton(); msgDialog->startLoading(); - msgDialog->show(); + msgDialog->showFullScreen(); }); connect(EventCenter::Default(),&EventCenter::InvokeOperationProgress,[=](QObject*,QObject* msg){ if (!msgDialog) msgDialog = new GUIMessageDialog(this); @@ -117,7 +117,7 @@ MainWindow::MainWindow(QWidget *parent) : msgDialog->hideMessage(); } msgDialog->hideExitButton(); - msgDialog->show(); + msgDialog->showFullScreen(); }); connect(EventCenter::Default(),&EventCenter::InvokeOperationEnd,[=](){ if (!msgDialog) return;