From d7ab69211aa55eeb8718786b30e92aa49da360d3 Mon Sep 17 00:00:00 2001 From: casglistro Date: Thu, 18 Apr 2024 16:44:04 +0800 Subject: [PATCH] use origin appClass when failed to search icons --- .config/ags/modules/dock/dock.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/ags/modules/dock/dock.js b/.config/ags/modules/dock/dock.js index 8c18c7536..a6c2fc6c7 100644 --- a/.config/ags/modules/dock/dock.js +++ b/.config/ags/modules/dock/dock.js @@ -158,6 +158,7 @@ const Taskbar = (monitor) => Widget.Box({ path = searchIcons(appClass.toLowerCase(), icon_files) cachePath[appClassLower] = path } + if (path === '') { path = appClass } const newButton = AppButton({ icon: path, tooltipText: `${client.title} (${appClass})`, @@ -186,6 +187,7 @@ const Taskbar = (monitor) => Widget.Box({ path = searchIcons(appClassLower, icon_files) cachePath[appClassLower] = path } + if (path === '') { path = substitute(appClassLower) } const newButton = AppButton({ icon: path, tooltipText: `${newClient.title} (${appClass})`,