ui: fix area selection checkboxes
Seems like we broke this at some point. Actually update the list of
tracks when checkboxes are checked/unchecked.
Change-Id: Ic00bc7b65747432fd9c1d8e251a783684513ca71
diff --git a/ui/src/core/selection_manager.ts b/ui/src/core/selection_manager.ts
index ea1cedc..c0be388 100644
--- a/ui/src/core/selection_manager.ts
+++ b/ui/src/core/selection_manager.ts
@@ -123,9 +123,9 @@
this.setSelection(
{
+ ...area,
kind: 'area',
tracks,
- ...area,
},
opts,
);
@@ -141,7 +141,7 @@
} else {
trackUris = trackUris.filter((t) => t !== trackUri);
}
- this.setSelection({
+ this.selectArea({
...curSelection,
trackUris,
});
@@ -169,7 +169,7 @@
}
});
}
- this.setSelection({
+ this.selectArea({
...curSelection,
trackUris: newTrackUris,
});
@@ -211,9 +211,7 @@
private setSelection(selection: Selection, opts?: SelectionOpts) {
this._selection = selection;
-
this.onSelectionChange(selection, opts ?? {});
-
raf.scheduleFullRedraw();
if (opts?.scrollToSelection) {