From 98e49d7c32c933dfd66d15e5403c021669b8a1e2 Mon Sep 17 00:00:00 2001 From: wackyideas <17151-wackyideas@users.noreply.gitgud.io> Date: Thu, 1 Sep 2022 22:51:23 +0200 Subject: [PATCH] Fixed SevenStart not working properly with shortcuts. --- .../SevenStart/contents/ui/main.qml | 50 ++++--------------- 1 file changed, 10 insertions(+), 40 deletions(-) diff --git a/Plasma/Plasma Widgets/User/Start Menu/SevenStart/contents/ui/main.qml b/Plasma/Plasma Widgets/User/Start Menu/SevenStart/contents/ui/main.qml index 85041cc..d5ba26c 100644 --- a/Plasma/Plasma Widgets/User/Start Menu/SevenStart/contents/ui/main.qml +++ b/Plasma/Plasma Widgets/User/Start Menu/SevenStart/contents/ui/main.qml @@ -35,42 +35,20 @@ Item { property bool isDash: false - Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation + Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation - Plasmoid.compactRepresentation: compactRepresentation - Plasmoid.fullRepresentation: null + Plasmoid.compactRepresentation: null + Plasmoid.fullRepresentation: compactRepresentation property Item dragSource: null property QtObject globalFavorites: rootModel.favoritesModel property QtObject systemFavorites: rootModel.systemFavoritesModel -PlasmaCore.DataSource { - id: menu_executable - engine: "executable" - connectedSources: [] - onNewData: { - var exitCode = data["exit code"] - var exitStatus = data["exit status"] - var stdout = data["stdout"] - var stderr = data["stderr"] - exited(sourceName, exitCode, exitStatus, stdout, stderr) - disconnectSource(sourceName) - } - function exec(cmd) { - if (cmd) { - connectSource(cmd) - } - } - signal exited(string cmd, int exitCode, int exitStatus, string stdout, string stderr) - } function action_menuedit() { processRunner.runMenuEditor(); } - function action_taskman() { - menu_executable.exec("ksysguard"); - } - + Component { id: compactRepresentation CompactRepresentation {} @@ -78,9 +56,7 @@ PlasmaCore.DataSource { Component { id: menuRepresentation - MenuRepresentation { - - } + MenuRepresentation {} } Kicker.RootModel { @@ -91,14 +67,14 @@ PlasmaCore.DataSource { appNameFormat: plasmoid.configuration.appNameFormat flat: true sorted: true - showSeparators: true + showSeparators: false appletInterface: plasmoid - paginate: false + paginate: true pageSize: plasmoid.configuration.numberColumns * plasmoid.configuration.numberRows - showAllApps: false - showRecentApps: true + showAllApps: true + showRecentApps: false showRecentDocs: false showRecentContacts: false showPowerSession: false @@ -192,7 +168,7 @@ PlasmaCore.DataSource { visible: false - imagePath: "widgets/menuitem" + imagePath: "widgets/viewitem" prefix: "hover" } @@ -203,12 +179,7 @@ PlasmaCore.DataSource { imagePath: "widgets/panel-background" } - PlasmaCore.Svg { - id: arrowsSvg - imagePath: "widgets/arrows" - size: "16x16" - } PlasmaComponents.Label { id: toolTipDelegate @@ -226,7 +197,6 @@ PlasmaCore.DataSource { Component.onCompleted: { plasmoid.setAction("menuedit", i18n("Edit Applications...")); - plasmoid.setAction("taskman", i18n("Task Manager")); rootModel.refreshed.connect(reset);