refactor: optimize RBF heatmap performance by decoupling grid resolution from viewport size and update UI file handling.

This commit is contained in:
jack
2026-07-06 21:02:22 -07:00
parent 015642eea0
commit 799155f249
6 changed files with 119 additions and 70 deletions
+12 -1
View File
@@ -199,9 +199,20 @@ ColumnLayout {
} catch (e) {}
return streamController.mode === "review" && streamController.loadedFile !== "" && modelData.fileName === streamController.loadedFile;
}
// "live_<serial>_<timestamp>.csv" is SessionController's recording
// naming convention (see FileBrowser._refresh_files) — grey these out
// unconditionally rather than only while actively being written, since
// a stale directory listing can't tell "mid-write" from "just finished".
readonly property bool isLiveFile: (modelData.baseName || "").toLowerCase().indexOf("live") >= 0
visible: matchesFilter
height: matchesFilter ? implicitHeight : 0
enabled: !isLiveFile
opacity: isLiveFile ? 0.45 : 1.0
Behavior on opacity {
NumberAnimation { duration: Theme.durationFast }
}
onClicked: streamController.loadFile(modelData.fileName)