Prevent timeout when restoring drive

This commit is contained in:
yflory
2018-07-19 17:51:38 +02:00
parent 2be78deb93
commit d816a2ed9f
4 changed files with 18 additions and 7 deletions

View File

@@ -3374,8 +3374,13 @@ define([
/* add a history button */
APP.histConfig = {
onLocal: function () {
UI.addLoadingScreen({ loadingText: "Please be careful" }); // XXX
proxy.drive = history.currentObj.drive;
sframeChan.query("Q_DRIVE_RESTORE", history.currentObj.drive, function () {});
sframeChan.query("Q_DRIVE_RESTORE", history.currentObj.drive, function () {
UI.removeLoadingScreen();
}, {
timeout: 5 * 60 * 1000
});
},
onRemote: function () {},
setHistory: setHistory,