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

[applets/showdesktop] Get rid of extra Loader, use MinimizeAllController directly

We don't gain much with this delayed loading, and in fact it forces us
to keep `showdesktop.minimizeAll()` method for the Plasmoid's action menu
which is otherwise already implemented in this controller.
parent e875678c
......@@ -26,7 +26,7 @@ MouseArea {
*/
readonly property bool isMinimizeAll: Plasmoid.pluginName === "org.kde.plasma.minimizeall"
readonly property bool isMinimizing: minimizeAllController.status === Loader.Ready ? minimizeAllController.item.active : false
readonly property alias isMinimizing: minimizeAllController.active
Plasmoid.icon: Plasmoid.configuration.icon
Plasmoid.title: {
......@@ -58,7 +58,7 @@ MouseArea {
Plasmoid.onActivated: {
if (isMinimizeAll) {
minimizeAllController.item.toggle();
minimizeAllController.toggle();
} else {
showdesktop.toggleDesktop();
}
......@@ -84,10 +84,8 @@ MouseArea {
id: showdesktop
}
Loader {
MinimizeAllController {
id: minimizeAllController
active: root.isMinimizeAll
source: "MinimizeAllController.qml"
}
PlasmaCore.IconItem {
......
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