Add REMOVE button to Snapshot Edit dialog.

This commit is contained in:
Robin E.R. Davies
2026-05-30 22:37:31 -04:00
parent 533e313b40
commit 9bc348bc9e
6 changed files with 81 additions and 27 deletions
+1 -3
View File
@@ -1802,9 +1802,7 @@ export class PiPedalModel //implements PiPedalModel
setSnapshots(snapshots: (Snapshot | null)[], selectedSnapshot: number) {
let pedalboard = this.pedalboard.get().clone();
pedalboard.snapshots = snapshots;
if (selectedSnapshot !== -1) {
pedalboard.selectedSnapshot = selectedSnapshot;
}
pedalboard.selectedSnapshot = selectedSnapshot;
this.pruneSnapshotValues(pedalboard);
this.setModelPedalboard(pedalboard);