stop settings from stranding a recording and losing its own state
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
let warnings: string[] = $state([])
|
||||
|
||||
async function save() {
|
||||
const keys = [start, stop, pause].filter(Boolean)
|
||||
if (new Set(keys).size !== keys.length) {
|
||||
warnings = ['Multiple actions assigned to the same key - each hotkey must be unique']
|
||||
return
|
||||
}
|
||||
saving = true
|
||||
warnings = []
|
||||
try {
|
||||
@@ -28,6 +33,8 @@
|
||||
} else {
|
||||
onDone()
|
||||
}
|
||||
} catch (e) {
|
||||
warnings = [String(e)]
|
||||
} finally { saving = false }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user