fix: Wayland Prompt starts under MainWindow
This commit is contained in:
@ -587,13 +587,8 @@ void MainWindow::open()
|
|||||||
trayActions.append(nullptr);
|
trayActions.append(nullptr);
|
||||||
trayActions.append(actionTrayQuit);
|
trayActions.append(actionTrayQuit);
|
||||||
#endif
|
#endif
|
||||||
m_TrayIcon.create(trayActions);
|
|
||||||
|
|
||||||
if (m_AppConfig.autoHide()) {
|
m_TrayIcon.create(trayActions);
|
||||||
hide();
|
|
||||||
} else {
|
|
||||||
showAndActivate();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!m_AppConfig.enableUpdateCheck().has_value()) {
|
if (!m_AppConfig.enableUpdateCheck().has_value()) {
|
||||||
m_AppConfig.setEnableUpdateCheck(messages::showUpdateCheckOption(this));
|
m_AppConfig.setEnableUpdateCheck(messages::showUpdateCheckOption(this));
|
||||||
@ -609,6 +604,12 @@ void MainWindow::open()
|
|||||||
if (m_AppConfig.startedBefore()) {
|
if (m_AppConfig.startedBefore()) {
|
||||||
m_CoreProcess.start();
|
m_CoreProcess.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_AppConfig.autoHide()) {
|
||||||
|
hide();
|
||||||
|
} else {
|
||||||
|
showAndActivate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onCoreProcessStarting()
|
void MainWindow::onCoreProcessStarting()
|
||||||
|
|||||||
Reference in New Issue
Block a user