mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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;
|
||||||
}
|
}
|
||||||
|
|
||||||
show();
|
if (!mApp->isTestModeEnabled()) {
|
||||||
|
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
|
||||||
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);
|
m_tabWidget->restoreState(window.tabs, window.currentTab);
|
||||||
updateStartupFocus();
|
updateStartupFocus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user