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