From a3a2e611f99b2d0f29c058536bc20dcfd6f48fc8 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Thu, 8 Oct 2020 14:19:05 -0400 Subject: [PATCH] main application: prevent wizard popup prior to main window load - prevents the wizard window from popping up if the systray icon is clicked to restore the application just prior to the main window having loaded Change-Id: I79b7981de77017117cf6e08ff4b0e1f6687635d3 --- src/MainApplicationWindow.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MainApplicationWindow.qml b/src/MainApplicationWindow.qml index c80d1fda0..b96840bfc 100644 --- a/src/MainApplicationWindow.qml +++ b/src/MainApplicationWindow.qml @@ -38,7 +38,7 @@ ApplicationWindow { if (mainViewLoader.item) mainViewLoader.item.hide() else - wizardView.hide() + Qt.quit() } } @@ -144,8 +144,8 @@ ApplicationWindow { } function onRestoreAppRequested() { - var window = mainViewLoader.item ? mainViewLoader.item : wizardView - restore(window) + if (mainViewLoader.item) + restore(mainViewLoader.item) } function onNotificationClicked(forceToTop) { -- GitLab