Skip to content

Commit ecff6d5

Browse files
committed
feat: Turn on the spinner while loading workflows from files
1 parent ecc9e22 commit ecff6d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/scripts/app.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,13 @@ export class ComfyApp {
537537
const fileMaybe = await extractFileFromDragEvent(event)
538538
if (!fileMaybe) return
539539

540-
await this.handleFile(fileMaybe, 'file_drop')
540+
const workspace = useWorkspaceStore()
541+
workspace.spinner = true
542+
try {
543+
await this.handleFile(fileMaybe, 'file_drop')
544+
} finally {
545+
workspace.spinner = false
546+
}
541547
} catch (error: unknown) {
542548
useToastStore().addAlert(t('toastMessages.dropFileError', { error }))
543549
}

0 commit comments

Comments
 (0)