Remove legacy menu setting Comfy.MenuPosition (#2080)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-12-27 23:15:43 -05:00
committed by GitHub
parent af1a5d9dbc
commit ab33eb6262
7 changed files with 2 additions and 31 deletions

View File

@@ -169,19 +169,8 @@ function dragElement(dragEl, settings): () => void {
}
let savePos = undefined
settings.addSetting({
id: 'Comfy.MenuPosition',
category: ['Comfy', 'Menu', 'MenuPosition'],
name: "Save legacy menu's position",
type: 'boolean',
defaultValue: savePos,
onChange(value) {
if (savePos === undefined && value) {
restorePos()
}
savePos = value
}
})
restorePos()
savePos = true
function dragMouseDown(e) {
e = e || window.event