Repository navigation
Fix Library crash when an addon adds folders after install - #119
Merged
Merged
Conversation
…second row Polestar shipped new folders after it was installed. They matched the index entry of the same repo and made a second Library row with the same key, and the desktop list crashed on the repeated key. Both list keys are distinct now too. Desktop 0.2.7, Android 0.0.16. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HDZ3Vam2odMBr8q97WJtos
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.
Requested by gulliby · project thread
Bug
Runeloader Desktop crashed on the Library tab:
Key "r:github:fitzforge/polestar" was already used.Cause
Polestar added folders after it was installed (the index lists 22 now, such as
Polestar_Arcade).Library.rowsgave the managed entry its own folders, and every folder it did not list matched the index item of the same repo, which made a second row with the same key. Android showed Polestar twice; the desktopLazyColumncrashed on the repeated key.Fix
Library.rows: a folder whose catalog or index match is a managed entry joins that entry's row (main folder kept first). Case incore/test/LibraryTest.java(fails without the fix).Sweep
Every
items(..., key = ...)indesktop/: Library (fixed), Browse (fixed), Categories (fixed list, no key). Android builds its rows without keys, so it only showed the duplicate; the core fix covers it.README checked: nothing user-visible changed.
Bugfix, refs the user's screenshot (no issue).
Generated by Claude Code