move cpu core consumer tracking into applet, move mpris art caching into service
This commit is contained in:
parent
baf4fd8bd1
commit
c96856581d
5 changed files with 27 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue