Skip to content

Commit 4ebd373

Browse files
authored
Fix subscription tab hiding not working on launch (#5925)
1 parent b9adcb3 commit 4ebd373

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/renderer/views/Subscriptions/Subscriptions.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ export default defineComponent({
9696
} else {
9797
// Restore currentTab
9898
const lastCurrentTabId = sessionStorage.getItem('Subscriptions/currentTab')
99-
if (lastCurrentTabId !== null) { this.changeTab(lastCurrentTabId) }
99+
if (lastCurrentTabId !== null) {
100+
this.changeTab(lastCurrentTabId)
101+
} else if (!this.visibleTabs.includes(this.currentTab)) {
102+
this.currentTab = this.visibleTabs[0]
103+
}
100104
}
101105
},
102106
methods: {

0 commit comments

Comments
 (0)