[plasma/plasma-desktop] applets/taskmanager/package/contents/ui: taskmanager: Show "Pin to Task Manager" menu on already pinned launchers

Fushan Wen null at kde.org
Thu Nov 25 02:00:52 GMT 2021


Git commit 17a2e2a661d67a17b76df2479be7c900d7227598 by Fushan Wen, on behalf of Joshua Goins.
Committed on 25/11/2021 at 01:57.
Pushed by fusionfuture into branch 'master'.

taskmanager: Show "Pin to Task Manager" menu on already pinned launchers

GUI: This makes it more consistent to the menus already shown on running tasks.

M  +1    -3    applets/taskmanager/package/contents/ui/ContextMenu.qml

https://invent.kde.org/plasma/plasma-desktop/commit/17a2e2a661d67a17b76df2479be7c900d7227598

diff --git a/applets/taskmanager/package/contents/ui/ContextMenu.qml b/applets/taskmanager/package/contents/ui/ContextMenu.qml
index 493e53130..47d1e3224 100644
--- a/applets/taskmanager/package/contents/ui/ContextMenu.qml
+++ b/applets/taskmanager/package/contents/ui/ContextMenu.qml
@@ -661,7 +661,6 @@ PlasmaComponents.ContextMenu {
         icon: "window-pin"
 
         visible: visualParent
-                     && get(atm.IsLauncher) !== true
                      && get(atm.IsStartup) !== true
                      && plasmoid.immutability !== PlasmaCore.Types.SystemImmutable
                      && (activityInfo.numberOfRunningActivities >= 2)
@@ -737,8 +736,7 @@ PlasmaComponents.ContextMenu {
     PlasmaComponents.MenuItem {
         visible: (visualParent
                 && plasmoid.immutability !== PlasmaCore.Types.SystemImmutable
-                && !launcherToggleAction.visible
-                && !showLauncherInActivitiesItem.visible)
+                && !launcherToggleAction.visible)
 
         text: i18n("Unpin from Task Manager")
         icon: "window-unpin"



More information about the kde-doc-english mailing list