Skip to content

Commit

Permalink
fix: overriding temp project without deactivating properly
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Sep 23, 2023
1 parent 8e5f53b commit 746f746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/components/Projects/ProjectManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export class ProjectManager extends Signal<void> {
})
await project.loadProject()

if (this.state[project.name] !== undefined) {
this.state[project.name].deactivate()
this.state[project.name].dispose()
}

set(this.state, project.name, project)

if (isNewProject) {
Expand Down
2 changes: 0 additions & 2 deletions src/components/TabSystem/OpenedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export class OpenedFiles extends PersistentQueue<string> {
await this.fired

for (let i = this.queue.elements.length - 1; i >= 0; i--) {
console.log(this.queue.elements[i])

try {
// Try to restore tab
await this.tabSystem.openPath(this.queue.elements[i], {
Expand Down

0 comments on commit 746f746

Please sign in to comment.