mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: reset keybindings when preset load fails on init
This commit is contained in:
@@ -210,8 +210,10 @@ async function initPresets() {
|
||||
keybindingStore.savedPresetData = preset
|
||||
keybindingStore.currentPresetName = currentName
|
||||
} else {
|
||||
keybindingStore.resetAllKeybindings()
|
||||
keybindingStore.currentPresetName = 'default'
|
||||
keybindingStore.savedPresetData = null
|
||||
await keybindingService.persistUserKeybindings()
|
||||
await settingStore.set('Comfy.Keybinding.CurrentPreset', 'default')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user