refactor: optimize RBF heatmap performance by decoupling grid resolution from viewport size and update UI file handling.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user