|
Lines 58-63
Link Here
|
| 58 |
#include <QPushButton> |
58 |
#include <QPushButton> |
| 59 |
#include <QLabel> |
59 |
#include <QLabel> |
| 60 |
#include <QMessageBox> |
60 |
#include <QMessageBox> |
|
|
61 |
#include <QTimer> |
| 61 |
#ifdef _WIN32 |
62 |
#ifdef _WIN32 |
| 62 |
#include <QtPlatformHeaders/QWindowsWindowFunctions> |
63 |
#include <QtPlatformHeaders/QWindowsWindowFunctions> |
| 63 |
#endif |
64 |
#endif |
|
Lines 1526-1534
void MainWindow::showEvent(QShowEvent *event) {
Link Here
|
| 1526 |
// main.cpp |
1527 |
// main.cpp |
| 1527 |
if (Preferences::instance()->isStartupPopupEnabled() && |
1528 |
if (Preferences::instance()->isStartupPopupEnabled() && |
| 1528 |
!m_startupPopupShown) { |
1529 |
!m_startupPopupShown) { |
| 1529 |
StartupPopup *startupPopup = new StartupPopup(); |
|
|
| 1530 |
startupPopup->show(); |
| 1531 |
m_startupPopupShown = true; |
1530 |
m_startupPopupShown = true; |
|
|
1531 |
// Map the main window first so Wayland can assign the dialog's parent. |
| 1532 |
QTimer::singleShot(0, this, []() { |
| 1533 |
StartupPopup *startupPopup = new StartupPopup(); |
| 1534 |
startupPopup->show(); |
| 1535 |
}); |
| 1532 |
} |
1536 |
} |
| 1533 |
} |
1537 |
} |
| 1534 |
extern const char *applicationName; |
1538 |
extern const char *applicationName; |