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

@ -27,18 +27,6 @@ M.BarModule {
readonly property var _coreMaxFreq: S.SystemStats.cpuCoreMaxFreq
readonly property var _coreTypes: S.SystemStats.cpuCoreTypes
property bool _coreConsumerActive: false
on_ShowPanelChanged: {
if (_showPanel && !_coreConsumerActive) {
_coreConsumerActive = true;
S.SystemStats.coreConsumers++;
} else if (!_showPanel && _coreConsumerActive) {
_coreConsumerActive = false;
S.SystemStats.coreConsumers--;
}
}
property M.ProcessList _procs: M.ProcessList {
sortBy: "cpu"
active: root._showPanel