Use settingStore to access setting (#572)

This commit is contained in:
Chenlei Hu
2024-08-21 11:42:12 -04:00
committed by GitHub
parent 743dc4879a
commit 6edfc9bc1b
4 changed files with 85 additions and 10 deletions

View File

@@ -2158,13 +2158,9 @@ export class ComfyApp {
showMissingNodesError(missingNodeTypes, hasAddedNodes = true) {
if (
!this.ui.settings.getSettingValue(
'Comfy.Workflow.ShowMissingNodesWarning'
)
)
return
if (this.vueAppReady) {
this.vueAppReady &&
useSettingStore().get('Comfy.Workflow.ShowMissingNodesWarning')
) {
showLoadWorkflowWarning({
missingNodeTypes,
hasAddedNodes,