mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 03:19:56 +00:00
Show question mark in race condition
This commit is contained in:
1 parent
3030312df9
commit
44691dd5a8
1 file changed
+2
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user