mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 07:14:11 +00:00
Remove legacy menu setting Comfy.MenuPosition (#2080)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user