Verified Commit 1b34b968 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/showdesktop] Add checkboxes to context menu's Plasmoid actions

This way they reflect the actual state of their controllers, even for a
controller that is not the primary operation mode of an applet and thus
is not already reflected by an active applet indicator line.
parent 351e9787
Pipeline #226206 passed with stage
in 3 minutes and 51 seconds
......@@ -164,11 +164,15 @@ MouseArea {
Plasmoid.setAction("minimizeall", "");
action = Plasmoid.action("minimizeall")
action.checkable = true;
action.checked = Qt.binding(() => minimizeAllController.active);
action.text = Qt.binding(() => minimizeAllController.title);
action.toolTip = Qt.binding(() => minimizeAllController.description);
Plasmoid.setAction("peek", "");
action = Plasmoid.action("peek")
action.checkable = true;
action.checked = Qt.binding(() => peekController.active);
action.text = Qt.binding(() => peekController.title);
action.toolTip = Qt.binding(() => peekController.description);
}
......
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