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:
parent
3030312df9
commit
44691dd5a8
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user