From 292f77f06b22e5e03921c755affe0042c1abc7b8 Mon Sep 17 00:00:00 2001 From: karrix Date: Fri, 11 Oct 2024 02:21:24 +0800 Subject: [PATCH] fix: default queue button position to dock --- web-plugin/index.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/web-plugin/index.js b/web-plugin/index.js index f714544..8650c9a 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -460,9 +460,19 @@ 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') + 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" + ); + await app.ui.settings.setSettingValueAsync( + "Comfy.MenuPosition.Docked", + true + ); } catch (error) { console.error("Error setting validation to false", error); }