File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,22 @@ class StatusScreenState extends State<StatusScreen> {
148148
149149 if (_suppressOldStatus ||
150150 provider.isLoading ||
151+ provider.minSpinnerActive ||
151152 status == null ||
152153 thumbnailLoadingForAutoOpen ||
153154 // If this screen was opened as a new print, wait until the
154155 // provider reports the job is ready to display. But allow
155156 // finished/canceled snapshots through so the UI doesn't lock up.
156- ((widget.newPrint && awaiting) &&
157+ // If opened as a new print, wait until provider signals readiness
158+ // (active job + file metadata + thumbnail). Additionally, ensure
159+ // we have at least the file name (or have frozen it) before
160+ // dismissing the global spinner. Some backends report the job
161+ // active before file metadata arrives; keep showing the spinner
162+ // until the UI can display a stable filename.
163+ ((widget.newPrint &&
164+ (awaiting ||
165+ ((status.printData? .fileData? .name == null ) &&
166+ _frozenFileName == null ))) &&
157167 ! newPrintReady &&
158168 ! finishedSnapshot &&
159169 ! canceledSnapshot)) {
You can’t perform that action at this time.
0 commit comments