1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Merge pull request #894 from bttelle/fix-empty-workspace

Fix for Workspace Explorer panel with no workspace
This commit is contained in:
Brian Fiete 2021-02-05 11:52:05 -08:00 committed by GitHub
commit 771422b8a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,9 +181,10 @@ namespace IDE.ui
{ {
base.FocusForKeyboard(); base.FocusForKeyboard();
SetFocus(); 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;
} }
} }