Git commit a68dbdc60f9bd696cc973fa22f8a436813fd9862 by Fushan Wen, on behalf of Joshua Goins. Committed on 25/11/2021 at 01:57. Pushed by fusionfuture into branch 'master'.
taskmanager: Only show "Unpin from Task Manager" in cases where you only have one running activity GUI: Fixes a bugged case in the last change. M +2 -1 applets/taskmanager/package/contents/ui/ContextMenu.qml https://invent.kde.org/plasma/plasma-desktop/commit/a68dbdc60f9bd696cc973fa22f8a436813fd9862 diff --git a/applets/taskmanager/package/contents/ui/ContextMenu.qml b/applets/taskmanager/package/contents/ui/ContextMenu.qml index 47d1e3224..abdd29f11 100644 --- a/applets/taskmanager/package/contents/ui/ContextMenu.qml +++ b/applets/taskmanager/package/contents/ui/ContextMenu.qml @@ -736,7 +736,8 @@ PlasmaComponents.ContextMenu { PlasmaComponents.MenuItem { visible: (visualParent && plasmoid.immutability !== PlasmaCore.Types.SystemImmutable - && !launcherToggleAction.visible) + && !launcherToggleAction.visible + && (activityInfo.numberOfRunningActivities < 2)) text: i18n("Unpin from Task Manager") icon: "window-unpin"