resources and system info: use triggeredOnStart

This commit is contained in:
end-4
2025-05-24 11:02:24 +02:00
parent 086ba7c35a
commit 4fb7d7a7db
2 changed files with 3 additions and 2 deletions
@@ -19,7 +19,8 @@ Singleton {
property var previousCpuStats
Timer {
interval: 10
triggeredOnStart: true
interval: ConfigOptions?.resources?.updateInterval ?? 3000
running: true
repeat: true
onTriggered: {
@@ -50,7 +51,6 @@ Singleton {
previousCpuStats = { total, idle }
}
interval = ConfigOptions?.resources?.updateInterval ?? 3000
}
}
@@ -12,6 +12,7 @@ Singleton {
property string username: "user"
Timer {
triggeredOnStart: true
interval: 1
running: true
repeat: false