mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-07 21:15:01 +03:00
Fix ViewModel and UI (#10093)
* Fix avalonia ScrollToEnd * Refactor ViewModel
This commit is contained in:
@@ -73,18 +73,16 @@ public class BulkObservableCollection<T> : ObservableCollection<T>
|
||||
|
||||
public void ReplaceRange(IEnumerable<T>? collection)
|
||||
{
|
||||
if (collection == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_suppressNotification = true;
|
||||
try
|
||||
{
|
||||
Items.Clear();
|
||||
foreach (var item in collection)
|
||||
if (collection != null)
|
||||
{
|
||||
Items.Add(item);
|
||||
foreach (var item in collection)
|
||||
{
|
||||
Items.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user