forked from Public/monero-gui
updater: fetch signed hashes from getmonero.org, verify downloads
This commit is contained in:
14
main.qml
14
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user