cleanup comments

This commit is contained in:
bymyself
2025-09-04 19:21:40 -07:00
parent f6051f6634
commit df36693ecb

View File

@@ -31,7 +31,7 @@
class="w-full h-full touch-none" class="w-full h-full touch-none"
/> />
<!-- TransformPane for Vue node rendering (development) --> <!-- TransformPane for Vue node rendering -->
<TransformPane <TransformPane
v-if="isVueNodesEnabled && canvasStore.canvas && comfyAppReady" v-if="isVueNodesEnabled && canvasStore.canvas && comfyAppReady"
:canvas="canvasStore.canvas as LGraphCanvas" :canvas="canvasStore.canvas as LGraphCanvas"
@@ -598,7 +598,7 @@ const loadCustomNodesI18n = async () => {
i18n.global.mergeLocaleMessage(locale, message) i18n.global.mergeLocaleMessage(locale, message)
}) })
} catch (error) { } catch (error) {
// Ignore i18n loading errors - not critical console.error('Failed to load custom nodes i18n', error)
} }
} }
@@ -615,7 +615,7 @@ onMounted(async () => {
useCopy() useCopy()
usePaste() usePaste()
useWorkflowAutoSave() useWorkflowAutoSave()
useVueFeatureFlags() // Automatically syncs Vue nodes flag with LiteGraph useVueFeatureFlags()
comfyApp.vueAppReady = true comfyApp.vueAppReady = true
@@ -719,19 +719,14 @@ onMounted(async () => {
}) })
onUnmounted(() => { onUnmounted(() => {
// Clean up node manager
if (nodeManager) { if (nodeManager) {
nodeManager.cleanup() nodeManager.cleanup()
nodeManager = null nodeManager = null
} }
// Clean up slot layout sync
if (slotSync) { if (slotSync) {
slotSync.stop() slotSync.stop()
slotSync = null slotSync = null
} }
// Clean up link layout sync
if (linkSync) { if (linkSync) {
linkSync.stop() linkSync.stop()
linkSync = null linkSync = null