From 2e60a44e702f9453c05f80da0c8cb00301de301c Mon Sep 17 00:00:00 2001 From: casglistro Date: Thu, 18 Apr 2024 16:46:08 +0800 Subject: [PATCH] use substitute --- .config/ags/modules/dock/dock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/modules/dock/dock.js b/.config/ags/modules/dock/dock.js index a6c2fc6c7..150d7e5e9 100644 --- a/.config/ags/modules/dock/dock.js +++ b/.config/ags/modules/dock/dock.js @@ -158,7 +158,7 @@ const Taskbar = (monitor) => Widget.Box({ path = searchIcons(appClass.toLowerCase(), icon_files) cachePath[appClassLower] = path } - if (path === '') { path = appClass } + if (path === '') { path = substitute(appClass) } const newButton = AppButton({ icon: path, tooltipText: `${client.title} (${appClass})`, @@ -187,7 +187,7 @@ const Taskbar = (monitor) => Widget.Box({ path = searchIcons(appClassLower, icon_files) cachePath[appClassLower] = path } - if (path === '') { path = substitute(appClassLower) } + if (path === '') { path = substitute(appClass) } const newButton = AppButton({ icon: path, tooltipText: `${newClient.title} (${appClass})`,