aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml14
1 files changed, 5 insertions, 9 deletions
diff --git a/main.qml b/main.qml
index 5c171400..37bf7799 100644
--- a/main.qml
+++ b/main.qml
@@ -1978,15 +1978,11 @@ ApplicationWindow {
closeWallet(Qt.quit);
}
- function onWalletCheckUpdatesComplete(update) {
- if (update === "")
- return
- print("Update found: " + update)
- var parts = update.split("|")
- if (parts.length == 4) {
- updateDialog.show(parts[0], isMac || isWindows || isLinux ? parts[3] : "");
- } else {
- print("Failed to parse update spec")
+ function onWalletCheckUpdatesComplete(version, downloadUrl, hash, firstSigner, secondSigner) {
+ const alreadyAsked = updateDialog.url == downloadUrl && updateDialog.hash == hash;
+ if (!alreadyAsked)
+ {
+ updateDialog.show(version, isMac || isWindows || isLinux ? downloadUrl : "", hash);
}
}