1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 13:28:33 +00:00

Show question mark in race condition

This commit is contained in:
Robert 2023-07-27 20:18:05 +02:00
parent 3030312df9
commit 44691dd5a8

View File

@ -50,11 +50,8 @@ public partial class ProfileConfigurationIcon : UserControl, IDisposable
{
Dispatcher.UIThread.Post(() =>
{
if (ConfigurationIcon is null)
return;
Stream? stream = ConfigurationIcon.GetIconStream();
if (stream == null)
Stream? stream = ConfigurationIcon?.GetIconStream();
if (stream == null || ConfigurationIcon == null)
Content = new MaterialIcon {Kind = MaterialIconKind.QuestionMark};
else
LoadFromBitmap(ConfigurationIcon, stream);