Skip to content

lighttable: hide stale loading overlay for fallback mipmaps - #21953

Open
Arecsu wants to merge 1 commit into
darktable-org:masterfrom
Arecsu:investigate-21812-preview-loading
Open

lighttable: hide stale loading overlay for fallback mipmaps#21953
Arecsu wants to merge 1 commit into
darktable-org:masterfrom
Arecsu:investigate-21812-preview-loading

Conversation

@Arecsu

@Arecsu Arecsu commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #21812

A full-preview 100% zoom can temporarily render a smaller mipmap while the requested level loads. The thumbnail kept its busy flag set during those retries, leaving a stale working... overlay visible. Keep the retry timer, but only show the busy message when no usable surface is available.

Testing:

  • Manual portrait full-preview, 100% zoom, and return-to-fit flow passed.

@TurboGit
TurboGit requested a lite review from Copilot August 22, 2026 07:28
@TurboGit TurboGit added this to the 5.8 milestone Aug 22, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug priority: medium core features are degraded in a way that is still mostly usable, software stutters labels Aug 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts lighttable thumbnail rendering so the “working…” overlay doesn’t remain visible when a smaller (fallback) mipmap is already being displayed during higher-resolution surface retries (e.g., full-preview 100% zoom transitions).

Changes:

  • Updates busy-flag behavior to avoid showing the loading overlay when DT_VIEW_SURFACE_SMALLER is returned but a usable surface already exists.
  • Adds explanatory comments describing the fallback-mipmap scenario and why retrying should continue without obscuring the image.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/dtgtk/thumbnail.c
@Arecsu

Arecsu commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

@TurboGit copilot suggestion resolved. Will not incorporate the suggestion as I stated in that thread. This should be ready to merge (:

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

Labels

bugfix pull request fixing a bug priority: medium core features are degraded in a way that is still mostly usable, software stutters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lighttable preview regression for portrait oriented images

3 participants