Skip to content

Commit

Permalink
Remove unnecessary whitespace indentation in 'main.ps1' script
Browse files Browse the repository at this point in the history
  • Loading branch information
og-mrk committed Oct 25, 2024
1 parent 2b2b11e commit dcbca3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -543,16 +543,16 @@ $sync["AutoThemeMenuItem"].Add_Click({
$sync.ThemePopup.IsOpen = $false
Invoke-WinutilThemeChange -theme "Auto"
$_.Handled = $false
})
# Define event handlers for menu items
})
# Define event handlers for menu items
$sync["DarkThemeMenuItem"].Add_Click({
if ($sync.ThemePopup -eq $null) {
Write-Host "Theme Popup is null, this's not allowed to happen in the first place. Please double check your UI code." -ForegroundColor Red
}
$sync.ThemePopup.IsOpen = $false
Invoke-WinutilThemeChange -theme "Dark"
$_.Handled = $false
})
})
# Define event handlers for menu items
$sync["LightThemeMenuItem"].Add_Click({
if ($sync.ThemePopup -eq $null) {
Expand All @@ -561,7 +561,7 @@ $sync["LightThemeMenuItem"].Add_Click({
$sync.ThemePopup.IsOpen = $false
Invoke-WinutilThemeChange -theme "Light"
$_.Handled = $false
})
})


# Define event handler for button click
Expand Down

0 comments on commit dcbca3d

Please sign in to comment.