From a08cf8faa8416595c4b69308243318d2e3cca183 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 14 Dec 2017 09:44:20 +0100 Subject: [PATCH] Allow drive to receive updates after leaving history mode --- www/drive/inner.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index 2197ba563..d403c61ad 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -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(); };