Verified Commit 249fd995 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 fc954dde
Pipeline #232075 canceled with stage
in 2 minutes and 42 seconds
......@@ -164,12 +164,16 @@ MouseArea {
Plasmoid.setAction("minimizeall", "");
action = Plasmoid.action("minimizeall")
action.text = Qt.binding(() => minimizeAllController.title);
action.checkable = true;
action.checked = Qt.binding(() => minimizeAllController.active);
action.text = Qt.binding(() => minimizeAllController.titleInactive);
action.toolTip = Qt.binding(() => minimizeAllController.description);
Plasmoid.setAction("peek", "");
action = Plasmoid.action("peek")
action.text = Qt.binding(() => peekController.title);
action.checkable = true;
action.checked = Qt.binding(() => peekController.active);
action.text = Qt.binding(() => peekController.titleInactive);
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