From e8d20e1c014934d9dd42a3e2d1353c291a2d343d Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:30:04 +0200 Subject: [PATCH] Fix subscription tab hiding not working on launch --- src/renderer/views/Subscriptions/Subscriptions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/views/Subscriptions/Subscriptions.js b/src/renderer/views/Subscriptions/Subscriptions.js index c36ff32cda7a5..7cd6e5895f3cf 100644 --- a/src/renderer/views/Subscriptions/Subscriptions.js +++ b/src/renderer/views/Subscriptions/Subscriptions.js @@ -96,7 +96,11 @@ export default defineComponent({ } else { // Restore currentTab const lastCurrentTabId = sessionStorage.getItem('Subscriptions/currentTab') - if (lastCurrentTabId !== null) { this.changeTab(lastCurrentTabId) } + if (lastCurrentTabId !== null) { + this.changeTab(lastCurrentTabId) + } else if (!this.visibleTabs.includes(this.currentTab)) { + this.currentTab = this.visibleTabs[0] + } } }, methods: {