mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 17:00:17 +00:00
Fix no inital selected profile
This commit is contained in:
parent
530e5f4078
commit
bc0a522ad8
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue