link release pops up searchbox by default (#348) (#350)

* link release pops up searchbox by default (#348)

* link release pops up searchbox by default

* Update browser test

* Fix tests

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-08-09 16:33:30 -04:00
committed by GitHub
parent 078df413b5
commit 4b83ee3918
7 changed files with 13 additions and 21 deletions

View File

@@ -44,9 +44,14 @@ const betaMenuEnabled = computed(
const nodeSearchEnabled = computed<boolean>(
() => settingStore.get('Comfy.NodeSearchBoxImpl') === 'default'
)
watch(nodeSearchEnabled, (newVal) => {
if (comfyApp.canvas) comfyApp.canvas.allow_searchbox = !newVal
})
watch(
nodeSearchEnabled,
(newVal) => {
LiteGraph.release_link_on_empty_shows_menu = !newVal
if (comfyApp.canvas) comfyApp.canvas.allow_searchbox = !newVal
},
{ immediate: true }
)
let dropTargetCleanup = () => {}