* VRFS-3719 - dont show update dialog more than one at a time
This commit is contained in:
parent
38a64a3dde
commit
cd6bf55a1a
|
|
@ -61,7 +61,10 @@
|
|||
})
|
||||
}
|
||||
|
||||
app.layout.showDialog('client-update')
|
||||
if(!app.layout.isDialogShowing('client-update')) {
|
||||
app.layout.showDialog('client-update')
|
||||
}
|
||||
|
||||
//$('#client_update').show()
|
||||
//$('#client_update_overlay').show()
|
||||
}
|
||||
|
|
@ -192,6 +195,11 @@
|
|||
|
||||
function runCheck(product, version, uri, size, currentVersion) {
|
||||
|
||||
if (app.clientUpdating) {
|
||||
logger.debug("client is already updating; skipping")
|
||||
return
|
||||
}
|
||||
|
||||
if(currentVersion === undefined) {
|
||||
currentVersion = context.jamClient.ClientUpdateVersion();
|
||||
|
||||
|
|
@ -302,7 +310,7 @@
|
|||
|
||||
$(document).on(EVENTS.SESSION_ENDED, function(e, data){
|
||||
if(app.clientUpdating) {
|
||||
updateClientUpdateDialog("update-start", { uri: updateUri })
|
||||
updateClientUpdateDialog("update-start", { uri: updateUri})
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue