activewindow: fix compact title binding loop (#1302)
This commit is contained in:
parent
6b61164808
commit
0548365a8c
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ Item {
|
||||||
return qsTr("Desktop");
|
return qsTr("Desktop");
|
||||||
if (Config.bar.activeWindow.compact) {
|
if (Config.bar.activeWindow.compact) {
|
||||||
// " - " (standard hyphen), " — " (em dash), " – " (en dash)
|
// " - " (standard hyphen), " — " (em dash), " – " (en dash)
|
||||||
const parts = root.windowTitle.split(/\s+[\-\u2013\u2014]\s+/);
|
const parts = title.split(/\s+[\-\u2013\u2014]\s+/);
|
||||||
if (parts.length > 1)
|
if (parts.length > 1)
|
||||||
return parts[parts.length - 1].trim();
|
return parts[parts.length - 1].trim();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue