mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-30 02:22:08 +03:00
Default to first sub; update SubIndexId on delete
https://github.com/2dust/v2rayN/issues/9151
This commit is contained in:
@@ -190,7 +190,7 @@ public class ProfilesSelectViewModel : MyReactiveObject
|
||||
}
|
||||
SelectedSub = (_config.SubIndexId.IsNotEmpty()
|
||||
? SubItems.FirstOrDefault(t => t.Id == _config.SubIndexId)
|
||||
: null) ?? SubItems.LastOrDefault();
|
||||
: null) ?? SubItems.FirstOrDefault();
|
||||
}
|
||||
|
||||
private async Task<List<ProfileItemModel>?> GetProfileItemsEx(string subid, string filter)
|
||||
|
||||
Reference in New Issue
Block a user