From bdf3c79147e996a50d42fc8a5afcd39871d31b7d Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 31 Jan 2019 19:33:00 -0600 Subject: [PATCH] DialogCommand - disposes window.DataContext on close by default --- src/client/spark/view/Extensions/Command/DialogCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/view/Extensions/Command/DialogCommand.cs b/src/client/spark/view/Extensions/Command/DialogCommand.cs index e5a9e8611..662ccbbd5 100644 --- a/src/client/spark/view/Extensions/Command/DialogCommand.cs +++ b/src/client/spark/view/Extensions/Command/DialogCommand.cs @@ -67,7 +67,7 @@ namespace mbts.ui public class DialogCommand : DialogCommand { public DialogCommand(Func factory) : base(_ => factory()) { } - public DialogCommand(Func factory, int off_x, int off_y) : base(_ => factory(), _ => true, false, off_x, off_y) { } + public DialogCommand(Func factory, int off_x, int off_y) : base(_ => factory(), _ => true, true, off_x, off_y) { } public DialogCommand(Func factory, Func can_execute) : base(_ => factory(), _ => can_execute()) { } public DialogCommand(Func factory, Func can_execute, bool try_dispose_vm_on_close) : base(_ => factory(), _ => can_execute(), try_dispose_vm_on_close) { } public DialogCommand(Func factory, Func can_execute, bool try_dispose_vm_on_close, int off_x, int off_y) : base(_ => factory(), _ => can_execute(), try_dispose_vm_on_close, off_x, off_y) { }