Merge pull request #15736 from zfox23/SUI/autoSelectAvatar

BUGZ-610: Auto-select the first avatar from your inventory if you have avatars in your inventory
This commit is contained in:
Zach Fox 2019-06-11 11:50:55 -07:00 committed by GitHub
commit 97c4726e1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,12 @@ Rectangle {
topBarInventoryModel.getNextPage();
} else {
inventoryFullyReceived = true;
// If we have an avatar in our inventory AND we haven't already auto-selected an avatar...
if (!Settings.getValue("simplifiedUI/alreadyAutoSelectedAvatar", false) && topBarInventoryModel.count > 0) {
Settings.setValue("simplifiedUI/alreadyAutoSelectedAvatar", true);
MyAvatar.skeletonModelURL = topBarInventoryModel.get(0).download_url;
}
}
}
}