Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only update Versions tab when the mod changes #3822

Merged
merged 1 commit into from Apr 13, 2023

Conversation

HebaruSan
Copy link
Member

Problem

If you switch to the Versions tab, then to another tab and back, the Versions tab fully refreshes itself, which it shouldn't do because it can take a long time (see #3638).

Cause

The call to Refresh is unconditional and is only skipped if the mod is null.

Changes

Now we don't refresh the versions list if it's already loaded for the same mod. There's already a code block checking if the mod is the same, so the call to Refresh is moved in there.

@HebaruSan HebaruSan added Bug Easy This is easy to fix GUI Issues affecting the interactive GUI labels Apr 12, 2023
Copy link
Member

@techman83 techman83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, clean fix!

@HebaruSan HebaruSan merged commit 92bb9af into KSP-CKAN:master Apr 13, 2023
12 checks passed
@HebaruSan HebaruSan deleted the fix/versions-tab-refresh branch April 13, 2023 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Easy This is easy to fix GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants