mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-23 13:35:04 +03:00
misc: chore: very small cleanup in AvaHostUIHandler
This commit is contained in:
parent
31e5f74e05
commit
dd16e3cee1
@ -279,13 +279,13 @@ namespace Ryujinx.Ava.UI.Applet
|
|||||||
.ForEach(profile => profiles.Add(new Models.UserProfile(profile, nav)));
|
.ForEach(profile => profiles.Add(new Models.UserProfile(profile, nav)));
|
||||||
|
|
||||||
profiles.Add(new Models.UserProfile(guest, nav));
|
profiles.Add(new Models.UserProfile(guest, nav));
|
||||||
UserSelectorDialogViewModel viewModel = new();
|
UserSelectorDialogViewModel viewModel = new()
|
||||||
viewModel.Profiles = profiles;
|
{
|
||||||
viewModel.SelectedUserId = _parent.AccountManager.LastOpenedUser.UserId;
|
Profiles = profiles,
|
||||||
|
SelectedUserId = _parent.AccountManager.LastOpenedUser.UserId
|
||||||
|
};
|
||||||
UserSelectorDialog content = new(viewModel);
|
UserSelectorDialog content = new(viewModel);
|
||||||
(UserId id, _) = await UserSelectorDialog.ShowInputDialog(content);
|
(selected, _) = await UserSelectorDialog.ShowInputDialog(content);
|
||||||
|
|
||||||
selected = id;
|
|
||||||
|
|
||||||
dialogCloseEvent.Set();
|
dialogCloseEvent.Set();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user