Commit 3d515026 authored by Nate Graham's avatar Nate Graham 🔩

Hide configure action in Info center mode

Summary:
There's nothing to configure, so hide the action that shows the configuration window.

BUG: 417977
BUG: 417981
FIXED-IN: 5.19.0

Test Plan:
Open Info Center
Click on hamburger menu
No more {nav Configure...} menu item

Reviewers: #plasma, mart, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: davidedmundson, broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27565
parent 35a37956
......@@ -163,6 +163,10 @@ void SettingsBase::initToolBar()
initHelpMenu();
configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure")));
// There's nothing to configure in info center mode
if (m_mode == BaseMode::InfoCenter) {
configureAction->setVisible(false);
}
// Then a spacer so the search line-edit is kept separate
spacerAction = new QWidgetAction( this );
......
Markdown is supported
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