From e8de0356eca6b0a34f581e747e95a52ae9fd2996 Mon Sep 17 00:00:00 2001 From: Marterich <47688561+Marterich@users.noreply.github.com> Date: Mon, 31 Mar 2025 21:56:34 +0200 Subject: [PATCH] Remove unnecessary $_.Handled Properties --- scripts/main.ps1 | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index a74ef41a..55f36d80 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -491,44 +491,36 @@ $sync["Form"].Add_Activated({ $sync["ThemeButton"].Add_Click({ Write-Debug "ThemeButton clicked" Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Hide"; "Theme" = "Toggle" } - $_.Handled = $false }) $sync["AutoThemeMenuItem"].Add_Click({ Write-Debug "About clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Theme") Invoke-WinutilThemeChange -theme "Auto" - $_.Handled = $false }) $sync["DarkThemeMenuItem"].Add_Click({ Write-Debug "Dark Theme clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Theme") Invoke-WinutilThemeChange -theme "Dark" - $_.Handled = $false }) $sync["LightThemeMenuItem"].Add_Click({ Write-Debug "Light Theme clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Theme") Invoke-WinutilThemeChange -theme "Light" - $_.Handled = $false }) - $sync["SettingsButton"].Add_Click({ Write-Debug "SettingsButton clicked" Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Toggle"; "Theme" = "Hide" } - $_.Handled = $false }) $sync["ImportMenuItem"].Add_Click({ Write-Debug "Import clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") Invoke-WPFImpex -type "import" - $_.Handled = $false }) $sync["ExportMenuItem"].Add_Click({ Write-Debug "Export clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") Invoke-WPFImpex -type "export" - $_.Handled = $false }) $sync["AboutMenuItem"].Add_Click({ Write-Debug "About clicked"