From 6ac8ba722c716ecab4bc344c8fcb6a460d0d92e3 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Mon, 20 Apr 2026 11:38:11 -0400 Subject: [PATCH] Await ShowDialog in Format_Click to fix CS4014 The format error dialog was launched fire-and-forget, causing status text to update and the method to return before the user dismissed it. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/PlanViewer.App/Controls/QuerySessionControl.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlanViewer.App/Controls/QuerySessionControl.axaml.cs b/src/PlanViewer.App/Controls/QuerySessionControl.axaml.cs index de27e6b..0c331f0 100644 --- a/src/PlanViewer.App/Controls/QuerySessionControl.axaml.cs +++ b/src/PlanViewer.App/Controls/QuerySessionControl.axaml.cs @@ -2056,7 +2056,7 @@ private async void Format_Click(object? sender, RoutedEventArgs e) } } }; - dialog.ShowDialog(GetParentWindow()); + await dialog.ShowDialog(GetParentWindow()); SetStatus($"Format failed: {errors.Count} error(s)"); return; }