mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
a8c662281d
commit
d55d071507
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user