From c86abd3dc60b1d9f711268fded6874c917c48231 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sun, 11 Aug 2024 19:33:43 -0400 Subject: [PATCH] Remove pending task count on queue button (#377) --- src/scripts/ui/menu/queueButton.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/scripts/ui/menu/queueButton.ts b/src/scripts/ui/menu/queueButton.ts index d1e8bc733..58558a955 100644 --- a/src/scripts/ui/menu/queueButton.ts +++ b/src/scripts/ui/menu/queueButton.ts @@ -21,22 +21,17 @@ export class ComfyQueueButton { } queueOptions: ComfyQueueOptions app: ComfyApp - queueSizeElement: HTMLElement autoQueueMode: string graphHasChanged: boolean constructor(app: ComfyApp) { this.app = app - this.queueSizeElement = $el('span.comfyui-queue-count', { - textContent: '?' - }) const queue = new ComfyButton({ content: $el('div', [ $el('span', { textContent: 'Queue' - }), - this.queueSizeElement + }) ]), icon: 'play', classList: 'comfyui-button', @@ -92,9 +87,6 @@ export class ComfyQueueButton { ({ detail }: CustomEvent) => { this.#internalQueueSize = detail.exec_info.queue_remaining if (this.#internalQueueSize != null) { - this.queueSizeElement.textContent = - this.#internalQueueSize > 99 ? '99+' : this.#internalQueueSize + '' - this.queueSizeElement.title = `${this.#internalQueueSize} prompts in queue` if (!this.#internalQueueSize && !app.lastExecutionError) { if ( this.autoQueueMode === 'instant' ||