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

VerticalTabs: Don't force open sidebar when opening new window

Only automatically open the sidebar after the plugin is enabled
from Preferences.

BUG: 393629
FIXED-IN: 3.0.1
This commit is contained in:
David Rosca 2018-04-29 10:05:55 +02:00
parent a8c662281d
commit d55d071507
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -71,6 +71,9 @@ void VerticalTabsPlugin::init(InitState state, const QString &settingsPath)
const auto windows = mApp->windows();
for (BrowserWindow *window : windows) {
mainWindowCreated(window);
if (window->sideBarManager()->activeSideBar().isEmpty()) {
window->sideBarManager()->showSideBar(QSL("VerticalTabs"));
}
}
}
}
@ -187,9 +190,7 @@ QString VerticalTabsPlugin::styleSheet() const
void VerticalTabsPlugin::mainWindowCreated(BrowserWindow *window)
{
if (window->sideBarManager()->activeSideBar().isEmpty()) {
window->sideBarManager()->showSideBar(QSL("VerticalTabs"));
}
Q_UNUSED(window)
setTabBarVisible(!m_replaceTabBar);
}