Skip to content

Commit 424a5f7

Browse files
authored
Expose Queue Button on the menu. (#238)
1 parent 542e1c1 commit 424a5f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scripts/ui/menu/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class ComfyAppMenu {
4141
settingsGroup: ComfyButtonGroup
4242
viewGroup: ComfyButtonGroup
4343
mobileMenuButton: ComfyButton
44+
queueButton: ComfyQueueButton
4445
element: HTMLElement
4546
menuPositionSetting: ReturnType<ComfySettingsDialog['addSetting']>
4647
position: MenuPosition
@@ -136,6 +137,7 @@ export class ComfyAppMenu {
136137
},
137138
classList: 'comfyui-button comfyui-menu-button'
138139
})
140+
this.queueButton = new ComfyQueueButton(app)
139141

140142
this.element = $el('nav.comfyui-menu.lg', { style: { display: 'none' } }, [
141143
this.logo,
@@ -147,7 +149,7 @@ export class ComfyAppMenu {
147149
collapseOnMobile(this.viewGroup).element,
148150

149151
getInteruptButton('lt-lg-show').element,
150-
new ComfyQueueButton(app).element,
152+
this.queueButton.element,
151153
showOnMobile(this.mobileMenuButton).element
152154
])
153155

0 commit comments

Comments
 (0)