Fix auto queue

This commit is contained in:
pythongosssss 2024-06-27 21:43:08 +01:00
parent 97b409cd48
commit aa26079727

View File

@ -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) {