From 75ba1cb3c7729f090c7bc30f11fd028f229c91c1 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 11 Dec 2018 10:30:12 -0800 Subject: [PATCH] I forgot to clear dot immediately --- interface/resources/qml/hifi/commerce/wallet/Wallet.qml | 3 +++ scripts/system/commerce/wallet.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/interface/resources/qml/hifi/commerce/wallet/Wallet.qml b/interface/resources/qml/hifi/commerce/wallet/Wallet.qml index eb4e1f7aa8..f8e2c9115b 100644 --- a/interface/resources/qml/hifi/commerce/wallet/Wallet.qml +++ b/interface/resources/qml/hifi/commerce/wallet/Wallet.qml @@ -100,6 +100,9 @@ Rectangle { console.log("Failed to get Available Updates", result.data.message); } else { exchangeMoneyButtonContainer.messagesWaiting = result.data.updates.length > 0; + if (!exchangeMoneyButtonContainer.messagesWaiting) { + sendToScript({method: 'clearShouldShowDotUpdates'}); + } } } } diff --git a/scripts/system/commerce/wallet.js b/scripts/system/commerce/wallet.js index d472d8d071..5c312b0ec5 100644 --- a/scripts/system/commerce/wallet.js +++ b/scripts/system/commerce/wallet.js @@ -536,6 +536,10 @@ function fromQml(message) { shouldShowDotHistory = false; ui.messagesWaiting(shouldShowDotUpdates || shouldShowDotHistory); break; + case 'clearShouldShowDotUpdates': + shouldShowDotUpdates = false; + ui.messagesWaiting(shouldShowDotUpdates || shouldShowDotHistory); + break; case 'http.request': // Handled elsewhere, don't log. break;