Skip to content

wallpaper: list the folders again when a new view opens - #4357

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:wallpaper-list-refresh
Nov 20, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:wallpaper-list-refresh

Conversation

@Conava

@Conava Conava commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Description

Wallpapers added to a folder didn't show up in the Super+Y menu while Settings was still open on the wallpaper page, since the list was only read again once every view using it had closed. Now every view that opens lists the folders again, so new files show up right away.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

The wallpaper list is only read when its first holder appears. While
another holder keeps it (Settings open on the wallpaper page), opening
Super+Y reused that list, so files added to a folder in the meantime
were missing until every holder had closed.

Every new holder now drops the request key and refreshes, so each
view that opens lists what is on disk.
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

Looks good.
No issues found.
Checked: the new onRefCountChanged refresh in WallpaperLibraryService against Ref.qml and all four holders (desktop context menu, Settings folder tabs, dash wallpaper tab). The duplicate Qt.callLater(refresh) on the first hold is deduplicated, in-flight replies are dropped through requestId, and the change adds no timers or processes. Model: claude-opus-5-5.

@Conava

Conava commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

@apollo79 I think you reported this a while ago. This was a tricky one, I finally figured it out!

@bbedward
bbedward merged commit ee90ad1 into duxlabs-dev:master Nov 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants