Allow drive to receive updates after leaving history mode

pull/1/head
yflory 7 years ago
parent bba974947b
commit a08cf8faa8

@ -2233,6 +2233,9 @@ define([
appStatus.ready(true); appStatus.ready(true);
}; };
var displayDirectory = APP.displayDirectory = function (path, force) { var displayDirectory = APP.displayDirectory = function (path, force) {
if (history.isHistoryMode) {
return void _displayDirectory(path, force);
}
updateObject(sframeChan, proxy, function () { updateObject(sframeChan, proxy, function () {
copyObjectValue(files, proxy.drive); copyObjectValue(files, proxy.drive);
_displayDirectory(path, force); _displayDirectory(path, force);
@ -2902,14 +2905,12 @@ define([
}); });
history.onEnterHistory = function (obj) { history.onEnterHistory = function (obj) {
var files = obj.drive; copyObjectValue(files, obj.drive);
filesOp = FO.init(files, config);
appStatus.isReady = true; appStatus.isReady = true;
refresh(); refresh();
}; };
history.onLeaveHistory = function () { history.onLeaveHistory = function () {
var files = proxy.drive; copyObjectValue(files, proxy.drive);
filesOp = FO.init(files, config);
refresh(); refresh();
}; };

Loading…
Cancel
Save