fix: default new ui for comfyui
This commit is contained in:
		
							parent
							
								
									7cff930861
								
							
						
					
					
						commit
						44a91d2093
					
				@ -457,6 +457,17 @@ const ext = {
 | 
				
			|||||||
      //   }
 | 
					      //   }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (this.native_mode) {
 | 
				
			||||||
 | 
					      // console.log("native mode", window, window.app);
 | 
				
			||||||
 | 
					      try {
 | 
				
			||||||
 | 
					        await app.ui.settings.setSettingValueAsync('Comfy.UseNewMenu', 'Top')
 | 
				
			||||||
 | 
					        await app.ui.settings.setSettingValueAsync('Comfy.Sidebar.Size', 'small')
 | 
				
			||||||
 | 
					        await app.ui.settings.setSettingValueAsync('Comfy.Sidebar.Location', 'right')
 | 
				
			||||||
 | 
					      } catch (error) {
 | 
				
			||||||
 | 
					        console.error("Error setting validation to false", error);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    app.graph.onAfterChange = ((originalFunction) =>
 | 
					    app.graph.onAfterChange = ((originalFunction) =>
 | 
				
			||||||
      async function () {
 | 
					      async function () {
 | 
				
			||||||
        const prompt = await app.graphToPrompt();
 | 
					        const prompt = await app.graphToPrompt();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user