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 uncommon crash when deleting custom profile #1880

Merged
merged 2 commits into from
Jan 11, 2020

Conversation

Wibble199
Copy link
Collaborator

@Wibble199 Wibble199 commented Jan 9, 2020

Fixes occasional crash when deleting a custom profile.

This sometimes occured when the previous profile in the list was hidden and the user had not shown the hidden profiles. Aurora would then try to select the item before the one deleted and try to get the average color of the profile's icon and crash (perhaps since the resource hadn't been loaded or something?).

Now, when deleting a profile, it will select the next non-hidden profile.

This sometimes occured when the previous profile in the list was hidden and the user had not shown the hidden profiles. Aurora would then select the item before the one deleted and try to get the average color of the bitmap and crash (perhaps since the resource hadn't been loaded?).
Now selects the previously non-hidden profile.
@diogotr7 diogotr7 merged commit 51cb866 into antonpup:dev Jan 11, 2020
@Wibble199 Wibble199 deleted the fix/custom-profile-delete-crash branch January 11, 2020 15:48
@diogotr7 diogotr7 mentioned this pull request Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants