mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +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(() =>
|
Dispatcher.UIThread.Post(() =>
|
||||||
{
|
{
|
||||||
if (ConfigurationIcon is null)
|
Stream? stream = ConfigurationIcon?.GetIconStream();
|
||||||
return;
|
if (stream == null || ConfigurationIcon == null)
|
||||||
|
|
||||||
Stream? stream = ConfigurationIcon.GetIconStream();
|
|
||||||
if (stream == null)
|
|
||||||
Content = new MaterialIcon {Kind = MaterialIconKind.QuestionMark};
|
Content = new MaterialIcon {Kind = MaterialIconKind.QuestionMark};
|
||||||
else
|
else
|
||||||
LoadFromBitmap(ConfigurationIcon, stream);
|
LoadFromBitmap(ConfigurationIcon, stream);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user