diff options
Diffstat (limited to 'desktop/island/StatusPill.qml')
| -rw-r--r-- | desktop/island/StatusPill.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/desktop/island/StatusPill.qml b/desktop/island/StatusPill.qml index dd97855..d62b87f 100644 --- a/desktop/island/StatusPill.qml +++ b/desktop/island/StatusPill.qml @@ -42,7 +42,7 @@ Capsule { restWidth: restRow.implicitWidth + 24 panelWidth: panel === "perf" ? 600 : 320 panelHeight: (panel === "controls" ? controlsPanel.implicitHeight - : panel === "perf" ? perfPanel.implicitHeight + : panel === "perf" ? (perfPanel.item ? perfPanel.item.implicitHeight : 0) : soundPanel.implicitHeight) + 28 // The detailed sampling (per-core, network, VRAM) runs only while the @@ -191,13 +191,14 @@ Capsule { onOpenDrawer: page => pill.openPage(page) } - PerfPanel { + // Loaded only while open: its models are fresh arrays every sample, and + // a hidden instance would rebuild its rows every 2s for the whole session. + Loader { id: perfPanel x: 14 y: 14 width: 600 - 28 - opacity: pill.panel === "perf" ? 1 : 0 - visible: opacity > 0 - Behavior on opacity { NumberAnimation { duration: 160 } } + active: pill.panel === "perf" + sourceComponent: PerfPanel { width: 600 - 28 } } } |
