updated quickshell
This commit is contained in:
@@ -308,8 +308,9 @@ PanelWindow {
|
||||
var seen = {}
|
||||
if (GlobalState.runningApps) {
|
||||
for (var i = 0; i < GlobalState.runningApps.length; i++) {
|
||||
var cls = GlobalState.runningApps[i]
|
||||
if (cls && pinned.indexOf(cls) === -1 && !seen[cls]) {
|
||||
// hyprctl clients entries are objects; extract the class string
|
||||
var cls = GlobalState.runningApps[i] && GlobalState.runningApps[i].class
|
||||
if (cls && cls.length > 0 && pinned.indexOf(cls) === -1 && !seen[cls]) {
|
||||
seen[cls] = true
|
||||
running.push(cls)
|
||||
}
|
||||
@@ -331,7 +332,7 @@ PanelWindow {
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: modelData.charAt(0).toUpperCase()
|
||||
text: modelData && modelData.length > 0 ? modelData.charAt(0).toUpperCase() : "?"
|
||||
color: Theme.textPrimary
|
||||
font.family: Theme.fontSans
|
||||
font.pixelSize: 12
|
||||
|
||||
Reference in New Issue
Block a user