open tab when single
This commit is contained in:
1 parent
e241a1222a
commit
a5a1bb1f34
1 file changed
+6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user