I forgot to clear dot immediately

This commit is contained in:
Zach Fox 2018-12-11 10:30:12 -08:00
parent ab6aeae91a
commit 75ba1cb3c7
2 changed files with 7 additions and 0 deletions

View file

@ -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'});
}
}
}
}

View file

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