1 Commits

Author SHA1 Message Date
e3a7ae30cd prevent an exception if icon is broken (probably) 2025-12-13 22:41:23 +03:00

View File

@@ -148,7 +148,13 @@ namespace osu.Desktop
var iconStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetType(), "lazer.ico");
if (iconStream != null)
host.Window.SetIconFromStream(iconStream);
try
{
host.Window.SetIconFromStream(iconStream);
}
catch
{
}
host.Window.Title = Name;
}