Compare commits

...

1 Commits

Author SHA1 Message Date
VewDev
c945243644 feat: add fallback to Classic Ryugay for app icon 2025-08-29 14:08:34 +02:00

View File

@ -185,7 +185,13 @@ namespace Ryujinx.Ava
public static void UpdateAppIcon(string newIconName)
{
ApplicationIcon selectedIcon = AvailableApplicationIcons.First(x => x.Name == newIconName);
ApplicationIcon selectedIcon = AvailableApplicationIcons.FirstOrDefault(x => x.Name == newIconName);
if (selectedIcon == null)
{
// Fallback to default icon if the selected one is not found
UpdateAppIcon("Classic Ryugay");
}
Stream activeIconStream = EmbeddedResources.GetStream(selectedIcon.FullPath);
if (activeIconStream != null)
{