This commit is contained in:
Daniel Maya 2022-09-22 11:44:41 +02:00
parent f95fc2b2df
commit 28b31d730d
1 changed files with 5 additions and 1 deletions

View File

@ -395,6 +395,7 @@ function formatFileSize(bytes) {
* @param {boolean} serverUpdate
*/
function install_package(url, auth, packageId, version, serverUpdate) {
var processed = 0;
umConfirm({
message:
(serverUpdate ? texts.ensureServerUpdate : texts.ensureUpdate) +
@ -442,7 +443,10 @@ function install_package(url, auth, packageId, version, serverUpdate) {
});
},
onDeny: function() {
cancelUpdate();
if (processed >= 1) {
cancelUpdate();
}
processed += 1;
}
});
}