Fixed selection
This commit is contained in:
@@ -32,10 +32,7 @@ public partial class ObservableCollectionViewModel<TViewModel> :
|
||||
private bool clearing;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool isInitialized;
|
||||
|
||||
[ObservableProperty]
|
||||
private int selectedIndex = 0;
|
||||
private bool initialized;
|
||||
|
||||
private bool selfDisposing;
|
||||
|
||||
@@ -325,12 +322,12 @@ public partial class ObservableCollectionViewModel<TViewModel> :
|
||||
|
||||
public async Task Initialize()
|
||||
{
|
||||
if (IsInitialized)
|
||||
if (Initialized)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IsInitialized = true;
|
||||
Initialized = true;
|
||||
await Enumerate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user