From bc9eda464cd378b0454b9eb8a6df8e51e75bade1 Mon Sep 17 00:00:00 2001 From: Damocles Date: Wed, 15 Apr 2026 20:03:57 +0200 Subject: [PATCH] fix: preserve core row count when grace timer clears cpuCores --- modules/SystemStats.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/SystemStats.qml b/modules/SystemStats.qml index 372a103..a9fe320 100644 --- a/modules/SystemStats.qml +++ b/modules/SystemStats.qml @@ -21,7 +21,11 @@ QtObject { property var _coreGraceTimer: Timer { interval: 30000 - onTriggered: root.cpuCores = [] + onTriggered: root.cpuCores = root.cpuCores.map(() => ({ + "usage": 0, + "freq_ghz": 0, + "history": [] + })) } property var cpuCoreMaxFreq: [] property var cpuCoreTypes: []