Skip to content

Commit c953f84

Browse files
committed
Reverting changes to ShellViewModel
1 parent a8d699b commit c953f84

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/ShellViewModel.cs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -437,28 +437,7 @@ private void UnsafeHandleCommandResult(ICommandResult? result, Action? onBeforeS
437437
case CommandResultKind.GoHome:
438438
{
439439
// Go back to the main page, but keep it open
440-
if (onBeforeShowConfirmation is not null)
441-
{
442-
// Dock context: show the palette window at the correct
443-
// position, then perform a full reset to the root page
444-
// (the navigation stack may be empty if the palette was
445-
// previously hidden).
446-
try
447-
{
448-
onBeforeShowConfirmation.Invoke();
449-
}
450-
catch (Exception ex)
451-
{
452-
CoreLogger.LogError(ex.ToString());
453-
}
454-
455-
ResetToHome();
456-
}
457-
else
458-
{
459-
GoHome();
460-
}
461-
440+
GoHome();
462441
break;
463442
}
464443

0 commit comments

Comments
 (0)