Fix no inital selected profile

This commit is contained in:
Isaac Marovitz 2023-01-04 17:17:00 -05:00
parent 530e5f4078
commit bc0a522ad8
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -74,12 +74,20 @@ namespace Ryujinx.Ava.UI.Models
_profile = profile;
_owner = owner;
UpdateBackground();
Image = profile.Image;
Name = profile.Name;
UserId = profile.UserId;
}
public void UpdateState()
{
UpdateBackground();
OnPropertyChanged(nameof(Name));
}
private void UpdateBackground()
{
Avalonia.Application.Current.Styles.TryGetResource("ControlFillColorSecondary", out object color);
@ -89,7 +97,6 @@ namespace Ryujinx.Ava.UI.Models
? new SolidColorBrush((Color)color)
: Brushes.Transparent;
}
OnPropertyChanged(nameof(Name));
}
public void Recover(UserProfile userProfile)