Verified Commit 9e3937e4 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applet/appmenu] Use qualified property access for menuAvailable

This removed root.menuAvailable property, since it won't be much shorter
that way, so not worth having it.

(cherry picked from commit dcda5bdb)
parent 941d6c5f
Pipeline #235691 passed with stage
in 8 minutes and 41 seconds
......@@ -23,7 +23,6 @@ Item {
readonly property bool vertical: Plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property bool view: Plasmoid.configuration.compactView
readonly property bool menuAvailable: appMenuModel.menuAvailable
onViewChanged: {
Plasmoid.nativeInterface.view = view;
......@@ -38,8 +37,8 @@ Item {
Layout.fillHeight: false
Layout.minimumWidth: implicitWidth
Layout.maximumWidth: implicitWidth
enabled: menuAvailable
checkable: menuAvailable && Plasmoid.nativeInterface.currentIndex === fakeIndex
enabled: appMenuModel.menuAvailable
checkable: appMenuModel.menuAvailable && Plasmoid.nativeInterface.currentIndex === fakeIndex
checked: checkable
icon.name: "application-menu"
......@@ -54,7 +53,7 @@ Item {
id: buttonGrid
Plasmoid.status: {
if (menuAvailable && Plasmoid.nativeInterface.currentIndex > -1 && buttonRepeater.count > 0) {
if (appMenuModel.menuAvailable && Plasmoid.nativeInterface.currentIndex > -1 && buttonRepeater.count > 0) {
return PlasmaCore.Types.NeedsAttentionStatus;
} else {
//when we're not enabled set to active to show the configure button
......
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