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 10:52:45 -07:00
parent 973e93aa2f
commit db2ce822b7

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;
}
}
}
}