Skip to content

Keep the import progress popup quiet while Hot Folder polls - #814

Merged
marcinz606 merged 1 commit into
marcinz606:mainfrom
MarinChen99097:hot-folder-quiet-progress
Aug 12, 2026
Merged

Keep the import progress popup quiet while Hot Folder polls#814
marcinz606 merged 1 commit into
marcinz606:mainfrom
MarinChen99097:hot-folder-quiet-progress

Conversation

@MarinChen99097

Copy link
Copy Markdown
Contributor

Problem

Hot Folder polls the current folder every 2 s. Each frame a tethering app (NX Tether etc.) or scanner drops in starts a per-frame "Hashing files" and then "Generating thumbnails" batch, and the batch progress popup show()s and raise_()s itself on every one of them. During a tethered scanning session the "Working…" dialog pops over the canvas on every shutter release — the same "reads as wait here mid-roll" problem the Scanlight live view already works around locally in scanlight.py (_keep_scan_windows_on_top).

Fix

Gate the popup at the batch_started connection in MainWindow: while the Hot Folder toggle is on, the quick per-frame import batches — the only non-abortable ones — do not show the popup. The HUD status line over the canvas still reports them ("SCANNING FOR ASSETS…", "GENERATING THUMBNAILS…"), so the import is never silent.

Every abortable batch (export, autocrop, normalization, stitch, HDR merge, contact sheet) shows the popup exactly as before, and with Hot Folder off nothing changes.

Also documents the behaviour in the Hot Folder bullet of docs/USER_GUIDE.md.

Testing

  • ruff format / ruff check: clean
  • ty check (Makefile flags): clean
  • pytest tests/test_batch_progress.py tests/test_dock_panels.py tests/test_empty_state_and_header.py: 19 passed
  • Full suite on Windows 11: 3903 passed — the 11 failures present are identical on an unmodified checkout of main on the same machine (platform-specific: test_parallel_gate, test_updater sh scripts, ICC, etc.), so this change introduces none.

Context: found while tethered-scanning on Windows with NX Tether dropping NEFs into a hot folder — the popup raised on every shutter release.

🤖 Generated with Claude Code

Hot Folder scans every 2 s, and each new frame starts a per-frame
"Hashing files" then "Generating thumbnails" batch. The progress popup
shows and raises itself on every batch, so a tethered capture session
gets a popup over the canvas on each shutter release.

Gate the popup in the main window: while Hot Folder is on, the
non-abortable quick import batches stay silent — the HUD status line
already reports them. Abortable batches (export, autocrop,
normalization, stitch, HDR, contact sheet) show the popup as before.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@marcinz606
marcinz606 merged commit d8b5b42 into marcinz606:main Aug 12, 2026
1 check passed
@marcinz606

Copy link
Copy Markdown
Owner

merged, thanks for contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants