Commit 15d09f02 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

auto hide tabs per default only for KWrite

rational: for KWrite SDI use might be desirable,
for Kate most people will use multiple documents
anyways
parent 4ac84558
Pipeline #196742 passed with stage
in 9 minutes and 23 seconds
......@@ -184,7 +184,7 @@ void KateConfigDialog::addBehaviorPage()
vbox->addWidget(label);
m_autoHideTabs = new QCheckBox(i18n("&Auto hide tabs"), buttonGroup);
m_autoHideTabs->setChecked(cgGeneral.readEntry("Auto Hide Tabs", true));
m_autoHideTabs->setChecked(cgGeneral.readEntry("Auto Hide Tabs", KateApp::isKWrite()));
m_autoHideTabs->setToolTip(i18n("When checked tabs will be hidden if only one document is open."));
connect(m_autoHideTabs, &QCheckBox::toggled, this, &KateConfigDialog::slotChanged);
vbox->addWidget(m_autoHideTabs);
......
......@@ -182,7 +182,7 @@ void KateViewSpace::readConfig()
// get tab config
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup cgGeneral = KConfigGroup(config, "General");
m_autoHideTabBar = cgGeneral.readEntry("Auto Hide Tabs", true);
m_autoHideTabBar = cgGeneral.readEntry("Auto Hide Tabs", KateApp::isKWrite());
// init tab bar
tabBarToggled();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment