stop settings from stranding a recording and losing its own state
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
|
||||
onMount(async () => {
|
||||
cfg = await api.getConfig()
|
||||
initialCfg = structuredClone(cfg)
|
||||
initialCfg = $state.snapshot(cfg)
|
||||
try { codecs = await api.codecAvailability() } catch { codecs = null }
|
||||
})
|
||||
|
||||
@@ -84,9 +84,11 @@
|
||||
if (failed.length > 0) {
|
||||
hotkeyWarnings = [`${failed.join(", ")} - hotkey may be in use by another app`]
|
||||
} else {
|
||||
initialCfg = structuredClone(cfg)
|
||||
initialCfg = $state.snapshot(cfg)
|
||||
onClose()
|
||||
}
|
||||
} catch (e) {
|
||||
hotkeyWarnings = [String(e)]
|
||||
} finally { saving = false }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user