improve set presets function

This commit is contained in:
Artem Anufrij
2026-10-08 02:03:39 +02:00
parent ccc13ba0e2
commit cf62b2a943
3 changed files with 4 additions and 3 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -144,9 +144,10 @@ function startPreset(preset) {
selectedPreset = preset; selectedPreset = preset;
bpm.value = preset.tempo; bpm.value = preset.tempo;
stop(); if (!isRunning.value) {
start(); start();
} }
}
const sortedPresets = computed(() => const sortedPresets = computed(() =>
[...presets.value].sort((a, b) => a.tempo - b.tempo) [...presets.value].sort((a, b) => a.tempo - b.tempo)
+1 -1
View File
@@ -59,7 +59,7 @@ button#start {
} }
button#stop { button#stop {
background: var(--orange); background-color: var(--orange);
} }
#controls { #controls {