mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Merge pull request #894 from bttelle/fix-empty-workspace
Fix for Workspace Explorer panel with no workspace
This commit is contained in:
commit
771422b8a8
1 changed files with 3 additions and 2 deletions
|
@ -181,9 +181,10 @@ namespace IDE.ui
|
|||
{
|
||||
base.FocusForKeyboard();
|
||||
SetFocus();
|
||||
if (mListView.GetRoot().FindFocusedItem() == null)
|
||||
let root = mListView.GetRoot();
|
||||
if (root.IsOpen && root.FindFocusedItem() == null)
|
||||
{
|
||||
mListView.GetRoot().GetChildAtIndex(0).Focused = true;
|
||||
root.GetChildAtIndex(0).Focused = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue