mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:37:00 +08:00
Fix auto queue
This commit is contained in:
parent
97b409cd48
commit
aa26079727
@ -13,8 +13,8 @@ export class ComfyQueueButton {
|
|||||||
|
|
||||||
queuePrompt = async (e) => {
|
queuePrompt = async (e) => {
|
||||||
this.#internalQueueSize += this.queueOptions.batchCount;
|
this.#internalQueueSize += this.queueOptions.batchCount;
|
||||||
// Hold shift to queue front
|
// Hold shift to queue front, event is undefined when auto-queue is enabled
|
||||||
await this.app.queuePrompt(-e.shiftKey, this.queueOptions.batchCount);
|
await this.app.queuePrompt(e?.shiftKey ? -1 : 0, this.queueOptions.batchCount);
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(app) {
|
constructor(app) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user