1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

BrowserWindow: Don't show window in test mode

This commit is contained in:
David Rosca 2018-01-29 00:08:18 +01:00
parent 662f935f68
commit 069c10c1f1
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -266,7 +266,9 @@ void BrowserWindow::postLaunch()
break;
}
show();
if (!mApp->isTestModeEnabled()) {
show();
}
switch (m_windowType) {
case Qz::BW_FirstAppWindow:
@ -1018,7 +1020,9 @@ void BrowserWindow::restoreWindow(const SavedWindow &window)
#ifdef QZ_WS_X11
moveToVirtualDesktop(window.virtualDesktop);
#endif
show(); // Window has to be visible before adding QWebEngineView's
if (!mApp->isTestModeEnabled()) {
show(); // Window has to be visible before adding QWebEngineView's
}
m_tabWidget->restoreState(window.tabs, window.currentTab);
updateStartupFocus();
}