mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
fix: register shortcuts tabs synchronously before async terminal import
Amp-Thread-ID: https://ampcode.com/threads/T-019c17e3-96d4-754b-8a41-9257d73720f1
This commit is contained in:
@@ -119,6 +119,9 @@ export const useBottomPanelStore = defineStore('bottomPanel', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const registerCoreBottomPanelTabs = async () => {
|
const registerCoreBottomPanelTabs = async () => {
|
||||||
|
// Register shortcuts tabs first (synchronous, always available)
|
||||||
|
useShortcutsTab().forEach(registerBottomPanelTab)
|
||||||
|
|
||||||
// Use __DISTRIBUTION__ directly for proper dead code elimination
|
// Use __DISTRIBUTION__ directly for proper dead code elimination
|
||||||
if (__DISTRIBUTION__ !== 'cloud') {
|
if (__DISTRIBUTION__ !== 'cloud') {
|
||||||
try {
|
try {
|
||||||
@@ -132,7 +135,6 @@ export const useBottomPanelStore = defineStore('bottomPanel', () => {
|
|||||||
console.error('Failed to load terminal tabs:', error)
|
console.error('Failed to load terminal tabs:', error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
useShortcutsTab().forEach(registerBottomPanelTab)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const registerExtensionBottomPanelTabs = (extension: ComfyExtension) => {
|
const registerExtensionBottomPanelTabs = (extension: ComfyExtension) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user