Repository navigation
Fix stale menu rows and menu commands lost in the same frame - #103
Merged
Merged
Conversation
|
LGTM 👍 The menu now redraws when the displayed anti-shimmer level or media-server settings change. Draining commands in order preserves both a same-server sign-in and its folder-search result, while restarting for a different server drops the stale mappings. The subtitle clamps use the sliders’ existing limits, and opening a photo cancels a held seek before its release can act on the new media. |
seaweeduk
force-pushed
the
fix/menu-updates
branch
from
November 22, 2026 20:14
cb6bde5 to
cb2fcb7
Compare
seaweeduk
force-pushed
the
refactor/wave-5
branch
2 times, most recently
from
November 22, 2026 20:59
53e2f9e to
e635c6a
Compare
seaweeduk
force-pushed
the
fix/menu-updates
branch
from
November 22, 2026 21:00
cb2fcb7 to
9daee38
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The menu draws a click's frame before the app has applied the command, so a row the click changes only shows its new value if the next view's change redraws it. Two rows never did. Separately, the menu kept one pending command, and a second one in the same frame replaced it.
antiShimmermoves fromMenuViewQuiettoMenuViewPage, and the Display page redraws when it changes.Menu::update()now compares what the section shows of the setup (in use, kind, address, key, folders, its toggles, the card) instead of the card alone.main.cppdrains it in order, and the vector keeps its capacity between frames. Before, a sign-in finishing in the sameupdate()as a new server's folder search lost itsSetStashServerto theSetStashFolderswritten after it, so the login was never saved.StashAddress::server) a queuedSetStashFolderswas found at.StashCommands::restart()drops it when Stash starts for another server, or for none because the address was cleared. A sign-in to the same server keeps it, and so does switching Stash off (the address stays in the setup).SetStashServerto another server, or connecting another server in first-run setup) no longer keeps the last server's saved mappings. The new server's own folders are looked for after its first sync, as before. Retyping the same server and going back to another kind's saved setup keep theirs.settings.confare clamped on read to their sliders' ranges invalue_ranges.h:subtitle_size50 to 200 %,subtitle_height−100 to 100,subtitle_distance_cm25 to 600. A hand-edited 999 used to stay 999.A probe drains the queued commands through
StashCommands::handle()and readssettings.confback. The sign-ins use a password, so the key in the sign-in's result is the one that should be saved, and the probe checks it is. The folder search starts from a server with no mappings and finds one.SetStashServer,SetStashFoldersSetStashServerSetStashServerUseServer,SetStashFoldersSetStashServerSetupStashKnown and left as is
intcan clamp to the wrong end.Important
AI disclosure
anthropic/claude-opus-5-5highopenai/gpt-6.2-astrahighAgent harness OpenCode 2.3.2