Fix Variable Typo (#2780)

This commit is contained in:
Martin Wiethan 2024-09-21 17:00:32 +02:00 committed by GitHub
parent 6cc7d314fe
commit 395ac9495d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -530,13 +530,13 @@ $sync["LightThemeMenuItem"].Add_Click({
# Define event handler for button click # Define event handler for button click
$sync["SettingsButton"].Add_Click({ $sync["SettingsButton"].Add_Click({
Write-Debug "SettingsButton clicked" Write-Debug "SettingsButton clicked"
if ($sync.Settings.IsOpen) { if ($sync.SettingsPopup.IsOpen) {
$sync.Settings.IsOpen = $false $sync.SettingsPopup.IsOpen = $false
} }
else{ else{
$sync.Settings.IsOpen = $true $sync.SettingsPopup.IsOpen = $true
} }
$sync.Settings.IsOpen = $false $sync.ThemePopup.IsOpen = $false
$_.Handled = $false $_.Handled = $false
}) })