open tab when single

This commit is contained in:
Fabian Freund
2025-07-18 14:36:06 +02:00
parent e241a1222a
commit a5a1bb1f34
@@ -335,6 +335,12 @@ class TabTreePreview extends HookConsumerWidget {
onTap: () async {
if (entity.totalTabs > 1) {
await TabTreeRoute(entity.rootId).push(context);
} else if (entity.tabId != activeTabId) {
//Close first to avoid rebuilds
onClose();
await ref
.read(tabRepositoryProvider.notifier)
.selectTab(tab.id);
}
},
// onDeleteAll: (host) async {