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

Fix settings menu slow loading #739

Merged
merged 2 commits into from
Sep 3, 2017
Merged

Fix settings menu slow loading #739

merged 2 commits into from
Sep 3, 2017

Conversation

kymckay
Copy link
Contributor

@kymckay kymckay commented Aug 28, 2017

When merged this pull request will:

  • Change the settings menu so that controls are created only once their associated category is switched to (should drastically reduce menu load time when a lot of settings are present - tested using the ace conversion branch where the issue was discovered).

To be honest I totally fumbled my way through the code until I found the parts that created the controls and handled category changing, then just adjusted those to try and implement the desired behaviour. It appears to work, but I can't say for certain whether there are any undesired side effects of this change that I've overlooked so please review thoroughly.

I totally floundered my way through adjusting the code here, but the
settings menu does seem to succesfully load into an initial category and
it's quick to load on the ace settings conversion branch. Side effect is
that there are a load of duplicate categories listed now.
@jonpas jonpas requested a review from commy2 August 28, 2017 18:57
@jonpas jonpas added this to the 3.4.1 milestone Aug 28, 2017
@commy2
Copy link
Contributor

commy2 commented Aug 29, 2017

Thanks! Will take a look later.

@commy2 commy2 self-assigned this Aug 29, 2017
@commy2
Copy link
Contributor

commy2 commented Sep 1, 2017

This looks good to me. I don't know if I should pity you for having to go through my mess or if I should be proud of myself that you found a solution that only changes a small number of lines.

Copy link
Contributor

@commy2 commy2 left a comment

Choose a reason for hiding this comment

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

Works nicely with the ACE branch that converts all settings to this and saves a lot of time!

@commy2 commy2 merged commit 364c168 into CBATeam:master Sep 3, 2017
@kymckay kymckay deleted the settings-speed branch September 3, 2017 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants