Verified Commit 60874595 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/showdesktop] Disable alternative actions in the context menu

This aims to prevent accidental activation of both effects at once,
which might turn out to be glitchy, and in any case is not something
that makes sense allowing a user to do.
parent 249fd995
Pipeline #232076 passed with stage
in 3 minutes and 33 seconds
......@@ -168,6 +168,7 @@ MouseArea {
action.checked = Qt.binding(() => minimizeAllController.active);
action.text = Qt.binding(() => minimizeAllController.titleInactive);
action.toolTip = Qt.binding(() => minimizeAllController.description);
action.enabled = Qt.binding(() => !peekController.active)
Plasmoid.setAction("peek", "");
action = Plasmoid.action("peek")
......@@ -175,5 +176,6 @@ MouseArea {
action.checked = Qt.binding(() => peekController.active);
action.text = Qt.binding(() => peekController.titleInactive);
action.toolTip = Qt.binding(() => peekController.description);
action.enabled = Qt.binding(() => !minimizeAllController.active)
}
}
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