Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 72d35ac

Browse files
committed
MRU List duplication fix when same document is being flipped
1 parent 8808b4e commit 72d35ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/view/MainViewManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,8 @@ define(function (require, exports, module) {
830830

831831
sourcePane.moveView(file, destinationPane, destinationIndex)
832832
.done(function () {
833+
// remove existing entry from mrulist for the same document if present
834+
_removeFileFromMRU(destinationPane.id, file);
833835
// update the mru list
834836
_mruList.every(function (record) {
835837
if (record.file === file && record.paneId === sourcePane.id) {
@@ -838,7 +840,6 @@ define(function (require, exports, module) {
838840
}
839841
return true;
840842
});
841-
842843
exports.trigger("workingSetMove", file, sourcePane.id, destinationPane.id);
843844
result.resolve();
844845
});

0 commit comments

Comments
 (0)