Repository navigation
Fix: refresh game list while sorting breaks tables - #657
Closed
BeSilentBob wants to merge 2 commits into
Closed
BeSilentBob wants to merge 2 commits into
BeSilentBob wants to merge 2 commits into
Conversation
this commit fixes Issue DavidoTek#656 where sorted game lists get corrupted when refreshing while sorting by name is active. It prepares two functions that reset the list and temporarily disables the sort during the update. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fixes wrong variable name for temporarily disable sorting.
Owner
|
Thanks for reporting and fixing it. Good catch! I changed it to fix a regression: when clicking the refresh button while the text search is open, it shows all games again instead of only matches. I also used contextmanager to remember whether a refresh is active and also handle the case where loading fails during a refresh. See #658 |
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.
Hi there,
Following to Issue #656 this PR aims to fix the broken game list on refresh while sorting is enabled. What happens in this fix is that each Store (Steam,GOG,Epic etc.) needs to temporarily disable qt sorting while populating the list. It needs to be enabled later on so qt can pick up the sorting again. This also cleans the table out.
What this fixes
It fixes the broken game list when hitting the refresh button while sorting is active
What this means for future store additions
Each store needs a disable and an enable call inside their update function.
So this is tested like always on the latest ProtonUp-Qt branch running from source. Beware however that I did not test the following stores to be working since I didn't have the opportunity. So these should be tested before considering using this PR. Feel free to merge or close it :)) This is just a (as far as I can tell) working layout to prevent this bug, maybe this can be solved otherwise I dunno.
Tested on:
somehow different from the rest; this gamelist seems not to have this problem, but with the parameter from this PR set it will fallback immediately to the current runner instead after multiple clicks on refresh while sorting is enablednvm it gets scrambled like the rest without these parameters)Important Notes
Specs
OS: CachyOS
Protonup-Qt: latest main branch