Commit afd9b6fb authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fixed repo_store setActiveFiles not correctly setting file activity

parent 31480210
...@@ -62,7 +62,7 @@ const RepoStore = { ...@@ -62,7 +62,7 @@ const RepoStore = {
if (RepoStore.isActiveFile(file)) return; if (RepoStore.isActiveFile(file)) return;
RepoStore.openedFiles = RepoStore.openedFiles RepoStore.openedFiles = RepoStore.openedFiles
.map((openedFile, i) => RepoStore.w(openedFile, i)); .map((openedFile, i) => RepoStore.setFileActivity(file, openedFile, i));
RepoStore.setActiveToRaw(); RepoStore.setActiveToRaw();
...@@ -76,9 +76,9 @@ const RepoStore = { ...@@ -76,9 +76,9 @@ const RepoStore = {
RepoStore.binary = file.binary; RepoStore.binary = file.binary;
}, },
w(file, i) { setFileActivity(file, openedFile, i) {
const activeFile = file; const activeFile = openedFile;
activeFile.active = activeFile.url === activeFile.url; activeFile.active = file.url === activeFile.url;
if (activeFile.active) RepoStore.setActiveFile(activeFile, i); if (activeFile.active) RepoStore.setActiveFile(activeFile, i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment