fix: greyed out empty tab button

This commit is contained in:
2026-07-29 01:28:04 +02:00
parent 34d5800c07
commit 1b9e1d76bd
+1 -1
View File
@@ -662,7 +662,7 @@ class _SelectedTabDetails extends StatelessWidget {
), ),
), ),
FilledButton( FilledButton(
onPressed: onCloseTabPressed, onPressed: tab.items.isEmpty ? null : onCloseTabPressed,
child: const Text('Close tab'), child: const Text('Close tab'),
), ),
], ],