summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Bar.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml
index e9760f75..09554a39 100644
--- a/accounts/gkleen@sif/shell/quickshell/Bar.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml
@@ -196,8 +196,11 @@ PanelWindow {
196 if (appAliases[appName]) 196 if (appAliases[appName])
197 appName = appAliases[appName]; 197 appName = appAliases[appName];
198 if (appName && title.endsWith(appName)) { 198 if (appName && title.endsWith(appName)) {
199 const oldTitle = title;
199 title = title.substring(0, title.length - appName.length); 200 title = title.substring(0, title.length - appName.length);
200 title = title.replace(/\s*(—|-)\s*$/, ""); 201 title = title.replace(/\s*(—|-)\s*$/, "");
202 if (!title)
203 title = oldTitle;
201 } 204 }
202 return title; 205 return title;
203 } 206 }