From 395ac9495d450ff6708837e81f3e929ec1164ace Mon Sep 17 00:00:00 2001 From: Martin Wiethan <47688561+Marterich@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:00:32 +0200 Subject: [PATCH] Fix Variable Typo (#2780) --- scripts/main.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index d1613b95..62ee5275 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -530,13 +530,13 @@ $sync["LightThemeMenuItem"].Add_Click({ # Define event handler for button click $sync["SettingsButton"].Add_Click({ Write-Debug "SettingsButton clicked" - if ($sync.Settings.IsOpen) { - $sync.Settings.IsOpen = $false + if ($sync.SettingsPopup.IsOpen) { + $sync.SettingsPopup.IsOpen = $false } else{ - $sync.Settings.IsOpen = $true + $sync.SettingsPopup.IsOpen = $true } - $sync.Settings.IsOpen = $false + $sync.ThemePopup.IsOpen = $false $_.Handled = $false })