From 084707183c8dad6738937367b819ca9fdd97444f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Jul 2026 20:12:12 +0000 Subject: [PATCH 1/2] Initial plan From a19c832340084828b78d03f7fb9706356be463bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Jul 2026 20:15:10 +0000 Subject: [PATCH 2/2] fix: normalize SetupForm whitespace for CI format check --- src/Ows.Setup/SetupForm.cs | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/Ows.Setup/SetupForm.cs b/src/Ows.Setup/SetupForm.cs index 96b25fa..b87628c 100644 --- a/src/Ows.Setup/SetupForm.cs +++ b/src/Ows.Setup/SetupForm.cs @@ -309,8 +309,7 @@ private void RenderProgress() { Location = new Point(0, 2) }; var label = new Label { Text = row, AutoSize = true, ForeColor = Ink, Location = new Point(28, 7) }; - var status = new Label - { Text = "Pending", AutoSize = true, ForeColor = Muted, Location = new Point(300, 5) }; + var status = new Label { Text = "Pending", AutoSize = true, ForeColor = Muted, Location = new Point(300, 5) }; rowPanel.Controls.Add(marker); rowPanel.Controls.Add(label); rowPanel.Controls.Add(status); @@ -352,8 +351,7 @@ private void RenderComplete() { : "The Agent service is installed but was not started. You can start it in Windows Services.", 0, 155 ); - var services = new Button - { Text = "Open Windows Services", Location = ContentPoint(0, 210), Size = new Size(160, 30) }; + var services = new Button { Text = "Open Windows Services", Location = ContentPoint(0, 210), Size = new Size(160, 30) }; services.Click += (_, _) => Process.Start(new ProcessStartInfo("services.msc") { UseShellExecute = true }); _body.Controls.Add(services); } else { @@ -678,19 +676,19 @@ private async void BrowseForInstallDirectory(object? sender, EventArgs e) { private static Task PickFolderAsync(string initialPath) { var completion = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); var thread = new Thread(() => { - try { - using var dialog = new FolderBrowserDialog(); - dialog.SelectedPath = initialPath; - dialog.RootFolder = Environment.SpecialFolder.MyComputer; - dialog.AutoUpgradeEnabled = false; - dialog.Description = "Choose the parent folder for Open Work Standard"; - dialog.ShowNewFolderButton = true; - dialog.UseDescriptionForTitle = true; - completion.SetResult(dialog.ShowDialog() == DialogResult.OK ? dialog.SelectedPath : null); - } catch (Exception exception) { - completion.SetException(exception); - } + try { + using var dialog = new FolderBrowserDialog(); + dialog.SelectedPath = initialPath; + dialog.RootFolder = Environment.SpecialFolder.MyComputer; + dialog.AutoUpgradeEnabled = false; + dialog.Description = "Choose the parent folder for Open Work Standard"; + dialog.ShowNewFolderButton = true; + dialog.UseDescriptionForTitle = true; + completion.SetResult(dialog.ShowDialog() == DialogResult.OK ? dialog.SelectedPath : null); + } catch (Exception exception) { + completion.SetException(exception); } + } ) { IsBackground = true };