From 333b3d62fea53ee9b82da23ef01755a254cb2800 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 31 Aug 2024 19:15:55 +0200 Subject: [PATCH] hide powershell on toggle commands --- run.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.ps1 b/run.ps1 index d3e63d8..2162fcf 100644 --- a/run.ps1 +++ b/run.ps1 @@ -31,7 +31,7 @@ $ctxEnable = New-Object System.Windows.Forms.ToolStripMenuItem $ctxEnable.Text = 'Enable Proxy' $ctxEnable.Add_Click({ $trayIcon.Icon = './assets/ICON_Enabled.ico' - Start-Process powershell.exe -ArgumentList '-Command', 'go run . set' + Start-Process powershell.exe -WindowStyle Hidden -ArgumentList '-Command', 'go run . set' }) # Add "Disable Proxy Setting" menu item @@ -39,7 +39,7 @@ $ctxDisable = New-Object System.Windows.Forms.ToolStripMenuItem $ctxDisable.Text = 'Disable Proxy' $ctxDisable.Add_Click({ $trayIcon.Icon = './assets/ICON_Disabled.ico' - Start-Process powershell.exe -ArgumentList '-Command', 'go run . unset' + Start-Process powershell.exe -WindowStyle Hidden -ArgumentList '-Command', 'go run . unset' }) # Add "Save Proxy Setting" menu item