Skip to content

Commit

Permalink
When closing a specific stashed tab, respect the "hide/close" preference
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-berry committed Jul 8, 2023
1 parent 5b511d6 commit fb64e84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stash-list/tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ export default defineComponent({
remove() {
this.attempt(async () => {
await the.model.tabs.remove([this.tab.id]);
if (this.stashedIn.length > 0) {
await the.model.hideOrCloseStashedTabs([this.tab.id]);
} else {
await the.model.tabs.remove([this.tab.id]);
}
});
},
},
Expand Down

0 comments on commit fb64e84

Please sign in to comment.