[plasma/plasma-desktop] applets/taskmanager/qml: applets/taskmanager: Clean up activateTaskAtIndex type and comment

Méven Car <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0e0b000e885b877967504538056bbcd403e904a0 by Méven Car, on behalf of Salman Farooq.
Committed on 21/07/2026 at 12:49.
Pushed by ngraham into branch 'master'.

applets/taskmanager: Clean up activateTaskAtIndex type and comment

Now that Meta+1-9 is dispatched from Backend rather than plasmashell's
QMetaMethod introspection, the signal always passes a proper int.
Drop the stale comment and the no-longer-needed typeof guard.

M  +1    -7    applets/taskmanager/qml/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/0e0b000e885b877967504538056bbcd403e904a0

diff --git a/applets/taskmanager/qml/main.qml b/applets/taskmanager/qml/main.qml
index 0d88479392..704e01a68a 100644
--- a/applets/taskmanager/qml/main.qml
+++ b/applets/taskmanager/qml/main.qml
@@ -549,13 +549,7 @@ PlasmoidItem {
         }
     }
 
-    // This is called by plasmashell in response to a Meta+number shortcut.
-    // TODO: Change type to int
-    function activateTaskAtIndex(index: var): void {
-        if (typeof index !== "number") {
-            return;
-        }
-
+    function activateTaskAtIndex(index: int): void {
         const task = taskRepeater.itemAt(index) as Task;
         if (task) {
             TaskManagerApplet.TaskTools.activateTask(task.modelIndex(), task.model, null, task, Plasmoid, this, effectWatcher.registered);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.