use substitute

This commit is contained in:
casglistro 2024-04-18 16:46:08 +08:00
parent d7ab69211a
commit 2e60a44e70

View file

@ -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})`,