Skip to content

Commit

Permalink
fix first tab not being selected on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Mar 5, 2024
1 parent 271ae15 commit d046627
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/tabs/solid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const [tabStore, _updateTabStore] = createStore<TabStore>(TabStoreDefaults());

window.electronTabStore.getStore().then((store) => {
if (store.tabs.length === 0) {
store.tabs.push(getDefaultTab());
const tab = getDefaultTab();
store.tabs.push(tab);
store.selectedTabId = tab.id;
}
_updateTabStore(store);
});
Expand Down

0 comments on commit d046627

Please sign in to comment.