From 5154f79ea6adc233e84fefc77adfb0df4960da97 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Fri, 18 Oct 2024 10:48:49 +0800 Subject: [PATCH] fix: the 'alt print' shotcut not quit fix the 'alt print' shotcut not quit Log: fix the 'alt print' shotcut not quit Bug: https://pms.uniontech.com/bug-view-279221.html --- src/main_window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main_window.cpp b/src/main_window.cpp index 9979f871..948570cf 100755 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -1814,6 +1814,10 @@ void MainWindow::topWindow() const auto r = saveAction(screenShotPix); save2Clipboard(screenShotPix); sendNotify(m_saveIndex, m_saveFileName, r); + + QTimer::singleShot(10, [ = ] { + exitApp(); + }); } void MainWindow::saveTopWindow()