formatter
This commit is contained in:
+24
-22
@@ -7,29 +7,31 @@ import Quickshell.Io
|
||||
import qs.Modules
|
||||
|
||||
Singleton {
|
||||
property int availableUpdates: 0
|
||||
property int availableUpdates: 0
|
||||
|
||||
Timer {
|
||||
interval: 1
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
updatesProc.running = true
|
||||
interval = 5000
|
||||
}
|
||||
}
|
||||
Timer {
|
||||
interval: 1
|
||||
repeat: true
|
||||
running: true
|
||||
|
||||
Process {
|
||||
id: updatesProc
|
||||
running: false
|
||||
onTriggered: {
|
||||
updatesProc.running = true;
|
||||
interval = 5000;
|
||||
}
|
||||
}
|
||||
|
||||
command: ["checkupdates"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: {
|
||||
const output = this.text
|
||||
const lines = output.trim().split("\n").filter(line => line.length > 0)
|
||||
availableUpdates = lines.length
|
||||
}
|
||||
}
|
||||
}
|
||||
Process {
|
||||
id: updatesProc
|
||||
|
||||
command: ["checkupdates"]
|
||||
running: false
|
||||
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: {
|
||||
const output = this.text;
|
||||
const lines = output.trim().split("\n").filter(line => line.length > 0);
|
||||
availableUpdates = lines.length;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user