diff options
Diffstat (limited to 'Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs')
-rw-r--r-- | Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs b/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs index f7a50077..a48b06e6 100644 --- a/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs +++ b/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs @@ -43,11 +43,9 @@ namespace Ryujinx.Ava.Ui.ViewModels } } - public bool IsHighlightedProfileEditable => - _highlightedProfile != null; + public bool IsHighlightedProfileEditable => _highlightedProfile != null; - public bool IsHighlightedProfileDeletable => - _highlightedProfile != null && _highlightedProfile.UserId != AccountManager.DefaultUserId; + public bool IsHighlightedProfileDeletable => _highlightedProfile != null && _highlightedProfile.UserId != AccountManager.DefaultUserId; public UserProfile HighlightedProfile { @@ -62,16 +60,13 @@ namespace Ryujinx.Ava.Ui.ViewModels } } - public void Dispose() - { - } + public void Dispose() { } public void LoadProfiles() { Profiles.Clear(); - var profiles = _owner.AccountManager.GetAllUsers() - .OrderByDescending(x => x.AccountState == AccountState.Open); + var profiles = _owner.AccountManager.GetAllUsers().OrderByDescending(x => x.AccountState == AccountState.Open); foreach (var profile in profiles) { @@ -94,6 +89,7 @@ namespace Ryujinx.Ava.Ui.ViewModels public void AddUser() { UserProfile userProfile = null; + _owner.Navigate(typeof(UserEditor), (this._owner, userProfile, true)); } |