Skip to content

Commit 44a8bf4

Browse files
committed
Fix error with files tab
1 parent d8442d9 commit 44a8bf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

addons/manager/addon-built.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/core/files.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ define([
4040
handler.open = function(file) {
4141
var path = file.path();
4242
var manager = tabs.manager();
43+
var uniqueId = handler.id+":"+path;
4344

4445
var tab = manager.getActiveTabByType("directory");
45-
if (tab != null && !manager.checkTabExists(path)) {
46+
if (tab != null && !manager.checkTabExists(uniqueId)) {
4647
// Change current tab to open the file
4748
tab.view.load(path, handler);
4849
} else {
@@ -51,7 +52,7 @@ define([
5152
"model": file,
5253
"handler": handler
5354
}, {
54-
"uniqueId": handler.id+":"+path,
55+
"uniqueId": uniqueId,
5556
"type": "file",
5657
});
5758
}

0 commit comments

Comments
 (0)