[Refactor] Move isImageNode to litegraphUtil (#2450)

This commit is contained in:
Chenlei Hu
2025-02-06 13:15:17 -05:00
committed by GitHub
parent fb170c9ee9
commit 0e0c4b1302
3 changed files with 21 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ import { useToastStore } from '@/stores/toastStore'
import { ComfyNodeDef, ExecutedWsMessage } from '@/types/apiTypes'
import type { NodeId } from '@/types/comfyWorkflow'
import { normalizeI18nKey } from '@/utils/formatUtil'
import { isImageNode } from '@/utils/litegraphUtil'
import { useExtensionService } from './extensionService'
@@ -337,7 +338,7 @@ export const useLitegraphService = () => {
})
}
if (ComfyApp.isImageNode(this)) {
if (isImageNode(this)) {
options.push({
content: 'Open in MaskEditor',
callback: (obj) => {