From 4b9115233b7e705889f3b3dccd28a20633bef24d Mon Sep 17 00:00:00 2001 From: qalqa-dev Date: Sun, 1 Feb 2026 19:26:00 +0300 Subject: [PATCH] dock: refresh app icons and names on DesktopEntries changes, and improve pinned app handling with proper names --- Modules/Dock/Dock.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/Dock/Dock.qml b/Modules/Dock/Dock.qml index 28e5d6379..3dc30509a 100644 --- a/Modules/Dock/Dock.qml +++ b/Modules/Dock/Dock.qml @@ -58,11 +58,12 @@ Loader { } } - // Refresh icons when DesktopEntries becomes available + // Refresh icons and names when DesktopEntries becomes available (or updates) Connections { target: DesktopEntries.applications function onValuesChanged() { root.iconRevision++; + updateDockApps(); } } @@ -333,8 +334,8 @@ Loader { pushApp("pinned-running", toplevel, pinnedAppId, toplevel.title); }); } else { - // App is pinned but not running - add once - pushApp("pinned", null, pinnedAppId, pinnedAppId); + // App is pinned but not running - add once + pushApp("pinned", null, pinnedAppId, getAppNameFromDesktopEntry(pinnedAppId) || pinnedAppId); } }); }