Skip to content

Commit

Permalink
Remove legacy menu setting Comfy.MenuPosition (#2080)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
huchenlei and github-actions authored Dec 28, 2024
1 parent af1a5d9 commit ab33eb6
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 31 deletions.
3 changes: 0 additions & 3 deletions src/locales/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"name": "Use new mask editor",
"tooltip": "Switch to the new mask editor interface"
},
"Comfy_MenuPosition": {
"name": "Save legacy menu's position"
},
"Comfy_ModelLibrary_AutoLoadAll": {
"name": "Automatically load all model folders",
"tooltip": "If true, all folders will load as soon as you open the model library (this may cause delays while it loads). If false, root level model folders will only load once you click on them."
Expand Down
3 changes: 0 additions & 3 deletions src/locales/fr/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"name": "Utiliser le nouvel éditeur de masque",
"tooltip": "Passer à la nouvelle interface de l'éditeur de masque"
},
"Comfy_MenuPosition": {
"name": "Sauvegarder la position du menu hérité"
},
"Comfy_ModelLibrary_AutoLoadAll": {
"name": "Charger automatiquement tous les dossiers de modèles",
"tooltip": "Si vrai, tous les dossiers seront chargés dès que vous ouvrez la bibliothèque de modèles (cela peut causer des retards pendant le chargement). Si faux, les dossiers de modèles de niveau racine ne seront chargés que lorsque vous cliquerez dessus."
Expand Down
3 changes: 0 additions & 3 deletions src/locales/ja/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"name": "新しいマスクエディタを使用する",
"tooltip": "新しいマスクエディタインターフェースに切り替えます。"
},
"Comfy_MenuPosition": {
"name": "レガシーメニューの位置を保存"
},
"Comfy_ModelLibrary_AutoLoadAll": {
"name": "すべてのモデルフォルダーを自動的に読み込む",
"tooltip": "trueの場合、モデルライブラリを開くとすぐにすべてのフォルダーが読み込まれます(これにより読み込み中に遅延が発生する可能性があります)。falseの場合、ルートレベルのモデルフォルダーはクリックするまで読み込まれません。"
Expand Down
3 changes: 0 additions & 3 deletions src/locales/ko/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"name": "새 마스크 편집기 사용",
"tooltip": "새 마스크 편집기 인터페이스로 전환"
},
"Comfy_MenuPosition": {
"name": "구식 메뉴의 위치 저장"
},
"Comfy_ModelLibrary_AutoLoadAll": {
"name": "모든 모델 폴더 자동 로드",
"tooltip": "참이면 모든 폴더가 모델 라이브러리를 열 때 즉시 로드됩니다 (로드하는 동안 지연이 발생할 수 있습니다). 거짓이면 루트 수준 모델 폴더는 클릭할 때만 로드됩니다."
Expand Down
3 changes: 0 additions & 3 deletions src/locales/ru/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"name": "Использовать новый редактор масок",
"tooltip": "Переключиться на новый интерфейс редактора масок"
},
"Comfy_MenuPosition": {
"name": "Сохранить положение старого меню"
},
"Comfy_ModelLibrary_AutoLoadAll": {
"name": "Автоматически загружать все папки моделей",
"tooltip": "Если true, все папки будут загружены, как только вы откроете библиотеку моделей (это может вызвать задержки при загрузке). Если false, корневые папки моделей будут загружены только после нажатия на них."
Expand Down
3 changes: 0 additions & 3 deletions src/locales/zh/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"name": "使用新画笔编辑器",
"tooltip": "切换到新的画笔编辑器界面"
},
"Comfy_MenuPosition": {
"name": "保存旧版菜单位置"
},
"Comfy_ModelLibrary_AutoLoadAll": {
"name": "自动加载所有模型文件夹",
"tooltip": "开启后,打开模型库会加载所有文件夹内的模型(可能导致卡顿)。关闭后,仅加载当前文件夹内的模型。"
Expand Down
15 changes: 2 additions & 13 deletions src/scripts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab33eb6

Please sign in to comment.