Skip to content

Commit 5397cb6

Browse files
committed
allow null dialog identifer!
1 parent e976149 commit 5397cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/DialogHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static async Task<object> Show(object content, object dialogIdentifier, D
176176
throw new InvalidOperationException("No loaded DialogHost instances.");
177177
LoadedInstances.First().Dispatcher.VerifyAccess();
178178

179-
var targets = LoadedInstances.Where(dh => Equals(dh.Identifier, dialogIdentifier)).ToList();
179+
var targets = LoadedInstances.Where(dh => dialogIdentifier == null || Equals(dh.Identifier, dialogIdentifier)).ToList();
180180
if (targets.Count == 0)
181181
throw new InvalidOperationException("No loaded DialogHost have an Identifier property matching dialogIndetifier argument.");
182182
if (targets.Count > 1)

0 commit comments

Comments
 (0)