Only make message appear after inventory received

This commit is contained in:
Zach Fox 2017-08-29 16:17:59 -07:00
parent a9c99854f9
commit 5d1170c5d6

View file

@ -29,6 +29,7 @@ Rectangle {
property string referrerURL: ""; property string referrerURL: "";
property bool securityImageResultReceived: false; property bool securityImageResultReceived: false;
property bool keyFilePathIfExistsResultReceived: false; property bool keyFilePathIfExistsResultReceived: false;
property bool inventoryReceived: false;
property bool punctuationMode: false; property bool punctuationMode: false;
// Style // Style
color: hifi.colors.baseGray; color: hifi.colors.baseGray;
@ -58,6 +59,7 @@ Rectangle {
} }
onInventoryResult: { onInventoryResult: {
inventoryReceived = true;
if (result.status !== 'success') { if (result.status !== 'success') {
console.log("Failed to get purchases", result.message); console.log("Failed to get purchases", result.message);
} else { } else {
@ -335,7 +337,7 @@ Rectangle {
Item { Item {
id: noPurchasesAlertContainer; id: noPurchasesAlertContainer;
visible: !purchasesContentsList.visible; visible: !purchasesContentsList.visible && root.inventoryReceived;
anchors.top: filterBarContainer.bottom; anchors.top: filterBarContainer.bottom;
anchors.topMargin: 12; anchors.topMargin: 12;
anchors.left: parent.left; anchors.left: parent.left;