add more icons and stuff
This commit is contained in:
parent
44dde3d034
commit
bf46b0f277
2 changed files with 10 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ Row {
|
|||
|
||||
property int count: 0
|
||||
property bool dnd: false
|
||||
property bool inhibited: false
|
||||
|
||||
Process {
|
||||
id: sub
|
||||
|
|
@ -18,8 +19,10 @@ Row {
|
|||
onRead: (line) => {
|
||||
try {
|
||||
const d = JSON.parse(line);
|
||||
const cls = d.class ?? "";
|
||||
root.count = d.count ?? 0;
|
||||
root.dnd = (d.class ?? "").includes("dnd");
|
||||
root.dnd = cls.includes("dnd");
|
||||
root.inhibited = cls.includes("inhibited");
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
|
@ -27,6 +30,7 @@ Row {
|
|||
|
||||
Text {
|
||||
text: {
|
||||
if (root.inhibited) return root.count > 0 ? "" : "";
|
||||
if (root.dnd) return root.count > 0 ? "" : "";
|
||||
return root.count > 0 ? "" : "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue