Skip to content

Commit

Permalink
fix error upon closing tab
Browse files Browse the repository at this point in the history
  • Loading branch information
solvedDev committed Dec 20, 2019
1 parent f1cdcaf commit 87231c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/scripts/TabSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class TabSystem {
this.main_screen_selected = this.split_screen_selected;
this.split_screen_selected = 0;
this.split_screen_active = false;
} else if(this.split_screen_projects[this.project].length === 0) {
} else if(this.split_screen_projects[this.project] !== undefined && this.split_screen_projects[this.project].length === 0) {
this.split_screen_active = false;
}

Expand Down Expand Up @@ -311,7 +311,7 @@ class TabSystem {

this.projects[this.project][tab].file_navigation = str_path;
EventBus.trigger("updateFileNavigation", str_path);

try {
PluginEnv.trigger("bridge:selectedNode", { node: this.getSelected().content.get(str_path) }, true);
} catch(e) {}
Expand Down

0 comments on commit 87231c4

Please sign in to comment.