Skip to content

QoL patch: auto-refresh after adding new game(s)#256

Open
FaceCrap wants to merge 2 commits into
WillyJL:mainfrom
FaceCrap:QoL-patch
Open

QoL patch: auto-refresh after adding new game(s)#256
FaceCrap wants to merge 2 commits into
WillyJL:mainfrom
FaceCrap:QoL-patch

Conversation

@FaceCrap

@FaceCrap FaceCrap commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Simple one-line addition.
Works when adding a new game via extension and from search result popup after typing in input box at bottom

Works when adding a new game via extension and from search result popup after typing in input box at bottom
@WillyJL

WillyJL commented Jun 8, 2026

Copy link
Copy Markdown
Owner

not opposed to this, but i see 1 potential issue. if adding multiple games, and refreshing one takes long enough, the next one will be added while still refreshing the previous one, and it just wont be refreshed, leading to inconsistent results with some refreshed and some not

@WillyJL WillyJL marked this pull request as draft June 8, 2026 20:32
@WillyJL WillyJL added the enhancement New enhancement or request label Jun 8, 2026
Added a separate list to hold the new games
Instead of calling `utils.start_refresh_task` changed the call to 
`await api.refresh(*games, full=True,  notifs=False)` since we do not want to reset the background timers for an actual refresh.
Checked if the length of the list is greater than zero before calling the refresh so as not to do a full refresh on the full list if length IS zero.
Changed the popup text to use the now known names.
@FaceCrap

FaceCrap commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author
  • Added a separate list to hold the new games.
  • Instead of calling utils.start_refresh_task changed the call to
    await api.refresh(*games, full=True, notifs=False) since we do not want to reset the background timers for an actual refresh.
  • Checked if the length of the list is greater than zero before calling the refresh so as not to do a full refresh on the full list if length IS zero.
  • Changed the popup text to use the now known names.

Also added as description for the commit

@FaceCrap FaceCrap marked this pull request as ready for review June 12, 2026 13:53
@FaceCrap FaceCrap changed the title QoL patch: auto-refresh after adding new game QoL patch: auto-refresh after adding new game(s) Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New enhancement or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants