Skip to content

Commit cb2742e

Browse files
authored
Merge pull request #949 from Keboo/fix946
Fix snackbar not being found
2 parents bfc61c7 + d8dbe56 commit cb2742e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/SnackbarMessageQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private DispatcherOperation<Snackbar> FindSnackbar(Dispatcher dispatcher)
328328
{
329329
if (!sb.IsLoaded || sb.Visibility != Visibility.Visible) return false;
330330
var window = Window.GetWindow(sb);
331-
return window != null && window.WindowState != WindowState.Minimized;
331+
return window?.WindowState != WindowState.Minimized;
332332
});
333333
});
334334
}

0 commit comments

Comments
 (0)