Skip to content

Commit 4f229d5

Browse files
fix: UI update race condition with loading indicator
1 parent bb8dc85 commit 4f229d5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Arius.Explorer/RepositoryExplorer/RepositoryExplorerViewModel.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,18 @@ private async Task LoadRepositoryAsync()
118118

119119
// NOTE no loading indicators here bc this is super quick; the actual loading happens in LoadNodeContentAsync
120120

121+
// Create root node
121122
var rootNode = new TreeNodeViewModel("/", OnNodeSelected)
122123
{
123124
Name = "Root",
124125
IsSelected = true,
126+
IsExpanded = true
125127
};
126128

129+
RootNode = [rootNode];
127130
SelectedTreeNode = rootNode;
128131

129-
}
132+
OnPropertyChanged(nameof(SelectedItemsText));
130133
}
131134
}
132135

0 commit comments

Comments
 (0)