Commit 88bce0e4 authored by Björn Feber's avatar Björn Feber
Browse files

Hide "Lock Widgets" button from panel edit mode toolbar

Summary:
In D24839 we hide "Lock Widgets" from the UI, so do the same thing here.

BUG: 412433

Test Plan: Open the panel edit mode.

Reviewers: #plasma, #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: #vdg, plasma-devel, #plasma

Tags: #plasma

Maniphest Tasks: T10190, T11094, T10402

Differential Revision: https://phabricator.kde.org/D24162
parent 52aa395f
......@@ -30,7 +30,6 @@ Item {
implicitWidth: Math.max(buttonsLayout_1.width, buttonsLayout_2.width, row.width) + units.smallSpacing * 2
implicitHeight: row.height + 20
readonly property string lockWidgetsButtonText: i18nd("plasma_shell_org.kde.plasma.desktop", "Lock Widgets")
readonly property string removePanelButtonText: i18nd("plasma_shell_org.kde.plasma.desktop", "Remove Panel")
readonly property string addWidgetsButtonText: i18nd("plasma_shell_org.kde.plasma.desktop", "Add Widgets...")
readonly property string addSpacerButtonText: i18nd("plasma_shell_org.kde.plasma.desktop", "Add Spacer")
......@@ -67,32 +66,6 @@ Item {
rowSpacing: units.smallSpacing
columnSpacing: units.smallSpacing
PlasmaComponents.Button {
iconSource: "document-encrypt"
text: buttonsLayout_1.showText ? root.lockWidgetsButtonText : ""
tooltip: buttonsLayout_1.showText ? "" : root.lockWidgetsButtonText
Layout.fillWidth: true
onClicked: {
plasmoid.action("lock widgets").trigger();
configDialog.close();
}
}
Item {
width: units.smallSpacing
height: units.smallSpacing
}
Kirigami.Separator {
Layout.fillWidth: true
Layout.fillHeight: true
}
Item {
width: units.smallSpacing
height: units.smallSpacing
}
PlasmaComponents.Button {
iconSource: "delete"
text: buttonsLayout_1.showText ? root.removePanelButtonText : ""
......
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