Skip to content
Verified Commit 351e9787 authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

[applets/showdesktop] Refactor peek/minimize controllers, and bind actions' text

Factoring out an "interface" (if one can call it like that in QML) for
the two operation modes removes all the decision making from the main
file, and delegates things like description text and toggle() method to
implementations. It turns ?trinary: mess into a set of simple and
straightforward bindings.

Test plan: applet works correctly in both configurations, on X11 and
Wayland; it's menu actions have adaptive text labels, and triggering
the one that matches applet's mode (primary controller) also updates
the highlight (active applet) indicator.
parent d0650e23
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