mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-02 05:32:01 +02:00
Only make message appear after inventory received
This commit is contained in:
parent
a9c99854f9
commit
5d1170c5d6
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue