move cpu core consumer tracking into applet, move mpris art caching into service

This commit is contained in:
Damocles 2026-04-25 22:44:23 +02:00
parent baf4fd8bd1
commit c96856581d
5 changed files with 27 additions and 32 deletions

View file

@ -12,6 +12,19 @@ Column {
property bool active: true
property bool _coreActive: false
onActiveChanged: {
if (active && !_coreActive) {
_coreActive = true;
S.SystemStats.coreConsumers++;
} else if (!active && _coreActive) {
_coreActive = false;
S.SystemStats.coreConsumers--;
}
}
Component.onDestruction: if (_coreActive)
S.SystemStats.coreConsumers--
// Per-core rows
Repeater {
model: root.cores.length