mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 06:15:59 -05:00
fix(ui): always add selectModelsTab hotkey data to prevent unhandled exception while registering the hotkey handler
This commit is contained in:
committed by
Mary Hipp Rogers
parent
944af4d4a9
commit
a79136b058
@@ -79,9 +79,7 @@ export const useHotkeyData = (): HotkeysData => {
|
||||
addHotkey('app', 'selectCanvasTab', ['1']);
|
||||
addHotkey('app', 'selectUpscalingTab', ['2']);
|
||||
addHotkey('app', 'selectWorkflowsTab', ['3']);
|
||||
if (isModelManagerEnabled) {
|
||||
addHotkey('app', 'selectModelsTab', ['4']);
|
||||
}
|
||||
addHotkey('app', 'selectModelsTab', ['4'], isModelManagerEnabled);
|
||||
addHotkey('app', 'selectQueueTab', isModelManagerEnabled ? ['5'] : ['4']);
|
||||
addHotkey('app', 'focusPrompt', ['alt+a']);
|
||||
addHotkey('app', 'toggleLeftPanel', ['t', 'o']);
|
||||
|
||||
Reference in New Issue
Block a user