spi refactor
This commit is contained in:
@@ -21,7 +21,7 @@ Item {
|
||||
const title = Hyprland.activeToplevel?.title;
|
||||
if (!title)
|
||||
return qsTr("Desktop");
|
||||
return title.split(/\s+[\-\u2013\u2014\|]\s+/).pop();
|
||||
return title.split(/\s+[\-\u2013\u2014\|]\s+/).pop();q
|
||||
}
|
||||
|
||||
readonly property string appIcon: {
|
||||
@@ -29,10 +29,6 @@ Item {
|
||||
|
||||
let icon = AppsState.matchIcon(root.windowClass);
|
||||
|
||||
if (!icon) {
|
||||
icon = AppsState.matchIcon(root.windowClass.toLowerCase());
|
||||
}
|
||||
|
||||
if (!icon) {
|
||||
icon = AppsState.matchIcon(root.windowTitle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user