Fix: order priority when resolving application icon maps (#868)
Signed-off-by: davfsa <davfsa@gmail.com>
This commit is contained in:
@@ -130,7 +130,7 @@ export const getAppIcon = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const findIconForClient = (clientClass: string, clientTitle: string): string | undefined => {
|
const findIconForClient = (clientClass: string, clientTitle: string): string | undefined => {
|
||||||
const appIconMap = { ...defaultApplicationIconMap, ...userDefinedIconMap };
|
const appIconMap = { ...userDefinedIconMap, ...defaultApplicationIconMap };
|
||||||
|
|
||||||
const iconEntry = Object.entries(appIconMap).find(([matcher]) => {
|
const iconEntry = Object.entries(appIconMap).find(([matcher]) => {
|
||||||
if (matcher.startsWith('class:')) {
|
if (matcher.startsWith('class:')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user