mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
BrowserWindow: Don't show window in test mode
This commit is contained in:
parent
662f935f68
commit
069c10c1f1
|
@ -266,7 +266,9 @@ void BrowserWindow::postLaunch()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mApp->isTestModeEnabled()) {
|
||||||
show();
|
show();
|
||||||
|
}
|
||||||
|
|
||||||
switch (m_windowType) {
|
switch (m_windowType) {
|
||||||
case Qz::BW_FirstAppWindow:
|
case Qz::BW_FirstAppWindow:
|
||||||
|
@ -1018,7 +1020,9 @@ void BrowserWindow::restoreWindow(const SavedWindow &window)
|
||||||
#ifdef QZ_WS_X11
|
#ifdef QZ_WS_X11
|
||||||
moveToVirtualDesktop(window.virtualDesktop);
|
moveToVirtualDesktop(window.virtualDesktop);
|
||||||
#endif
|
#endif
|
||||||
|
if (!mApp->isTestModeEnabled()) {
|
||||||
show(); // Window has to be visible before adding QWebEngineView's
|
show(); // Window has to be visible before adding QWebEngineView's
|
||||||
|
}
|
||||||
m_tabWidget->restoreState(window.tabs, window.currentTab);
|
m_tabWidget->restoreState(window.tabs, window.currentTab);
|
||||||
updateStartupFocus();
|
updateStartupFocus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user