Commit 64140d3f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add "Show statusbar" menu entry in "Settings"

Makes this setting more accessible and makes it consistent with other
KDE applications. Since Dolphin has a separate status bar on each view
container and doesn't use kxmlgui's statusbar, we don't get this menu
entry automatically.


(cherry picked from commit 05941a52)
parent 5f4a779c
Pipeline #204625 passed with stage
in 6 minutes and 6 seconds
......@@ -1802,6 +1802,15 @@ void DolphinMainWindow::setupActions()
"contain mostly the same commands and configuration options."));
connect(showMenuBar, &KToggleAction::triggered, // Fixes #286822
this, &DolphinMainWindow::toggleShowMenuBar, Qt::QueuedConnection);
KToggleAction* showStatusBar = KStandardAction::showStatusbar(nullptr, nullptr, actionCollection());
showStatusBar->setChecked(GeneralSettings::showStatusBar());
connect(GeneralSettings::self(), &GeneralSettings::showStatusBarChanged, showStatusBar, &KToggleAction::setChecked);
connect(showStatusBar, &KToggleAction::triggered, this, [this](bool checked) {
GeneralSettings::setShowStatusBar(checked);
refreshViews();
});
KStandardAction::keyBindings(this, &DolphinMainWindow::slotKeyBindings, actionCollection());
KStandardAction::preferences(this, &DolphinMainWindow::editSettings, actionCollection());
......
......@@ -10,6 +10,9 @@
<kcfgfile name="dolphinrc"/>
<signal name="sortingChoiceChanged" />
<signal name="splitViewChanged" />
<signal name="showStatusBarChanged">
<argument type="Bool">showStatusBar</argument>
</signal>
<group name="General">
<entry name="EditableUrl" type="Bool">
<label>Should the URL be editable for the user</label>
......@@ -106,6 +109,7 @@
<entry name="ShowStatusBar" type="Bool">
<label>Show the statusbar</label>
<default>true</default>
<emit signal="showStatusBarChanged" />
</entry>
<entry name="ShowZoomSlider" type="Bool">
<label>Show zoom slider in the statusbar</label>
......
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