Allow drive to receive updates after leaving history mode
parent
bba974947b
commit
a08cf8faa8
|
@ -2233,6 +2233,9 @@ define([
|
|||
appStatus.ready(true);
|
||||
};
|
||||
var displayDirectory = APP.displayDirectory = function (path, force) {
|
||||
if (history.isHistoryMode) {
|
||||
return void _displayDirectory(path, force);
|
||||
}
|
||||
updateObject(sframeChan, proxy, function () {
|
||||
copyObjectValue(files, proxy.drive);
|
||||
_displayDirectory(path, force);
|
||||
|
@ -2902,14 +2905,12 @@ define([
|
|||
});
|
||||
|
||||
history.onEnterHistory = function (obj) {
|
||||
var files = obj.drive;
|
||||
filesOp = FO.init(files, config);
|
||||
copyObjectValue(files, obj.drive);
|
||||
appStatus.isReady = true;
|
||||
refresh();
|
||||
};
|
||||
history.onLeaveHistory = function () {
|
||||
var files = proxy.drive;
|
||||
filesOp = FO.init(files, config);
|
||||
copyObjectValue(files, proxy.drive);
|
||||
refresh();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue