mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 03:19:56 +00:00
Fix race condition when opening window that causes a crash
This commit is contained in:
1 parent
fc598d88ad
commit
3830e8566e
1 file changed
+3
@@ -50,6 +50,9 @@ public partial class ProfileConfigurationIcon : UserControl, IDisposable
|
||||
{
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
if (ConfigurationIcon is null)
|
||||
return;
|
||||
|
||||
Stream? stream = ConfigurationIcon.GetIconStream();
|
||||
if (stream == null)
|
||||
Content = new MaterialIcon {Kind = MaterialIconKind.QuestionMark};
|
||||
|
||||
Reference in new issue
Block a user