mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix unit test.
This commit is contained in:
@@ -112,7 +112,7 @@ public class TabView : View
|
||||
set
|
||||
{
|
||||
Tab? old = _selectedTab;
|
||||
_selectedTabHasFocus = old?.HasFocus == true || !_contentView.CanFocus;
|
||||
_selectedTabHasFocus = old is { } && (old.HasFocus == true || !_contentView.CanFocus);
|
||||
|
||||
if (_selectedTab is { })
|
||||
{
|
||||
@@ -140,7 +140,7 @@ public class TabView : View
|
||||
|
||||
if (old != _selectedTab)
|
||||
{
|
||||
if (_selectedTabHasFocus)
|
||||
if (_selectedTabHasFocus || !_contentView.CanFocus)
|
||||
{
|
||||
SelectedTab?.SetFocus ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user