aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-04-14 21:03:15 +0000
committerxiphon <xiphon@protonmail.com>2020-04-14 21:37:04 +0000
commitea25b71ca66a7d81203bbfed7fa1a1d6fa79553f (patch)
tree40bfaac76cba0e0f68a7b1e2b79cec0eab4841d6 /main.qml
parent8e4124f06aa6c580ee62dd1b78735bc488e21366 (diff)
downloadmonzero-gui-ea25b71ca66a7d81203bbfed7fa1a1d6fa79553f.tar.gz
monzero-gui-ea25b71ca66a7d81203bbfed7fa1a1d6fa79553f.tar.xz
monzero-gui-ea25b71ca66a7d81203bbfed7fa1a1d6fa79553f.zip
updater: fetch signed hashes from getmonero.org, verify downloads
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);
}
}