Fixed Dialog & Messagebox

This commit is contained in:
Tig
2024-10-08 00:49:51 -04:00
parent 4410b54d61
commit b2049d8991
12 changed files with 41 additions and 37 deletions

View File

@@ -443,10 +443,10 @@ public class TreeView<T> : View, ITreeView where T : class
/// <para>This method also ensures that the selected object is visible.</para>
/// </summary>
/// <returns><see langword="true"/> if <see cref="ObjectActivated"/> was fired.</returns>
public bool? ActivateSelectedObjectIfAny ()
public bool? ActivateSelectedObjectIfAny (CommandContext ctx)
{
// By default, Command.Accept calls OnAccept, so we need to call it here to ensure that the event is fired.
if (RaiseAccepting () == true)
if (RaiseAccepting (ctx) == true)
{
return true;
}