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 411bc66
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions scripts/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,20 @@ $sync.runspace.Open()

# Create classes for different exceptions

class WingetFailedInstall : Exception {
[string]$additionalData

WingetFailedInstall($Message) : base($Message) {}
}

class ChocoFailedInstall : Exception {
[string]$additionalData

ChocoFailedInstall($Message) : base($Message) {}
}
class WingetFailedInstall : Exception {
[string]$additionalData
WingetFailedInstall($Message) : base($Message) {}
}

class GenericException : Exception {
[string]$additionalData
class ChocoFailedInstall : Exception {
[string]$additionalData
ChocoFailedInstall($Message) : base($Message) {}
}

GenericException($Message) : base($Message) {}
}
class GenericException : Exception {
[string]$additionalData
GenericException($Message) : base($Message) {}
}


$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
Expand Down Expand Up @@ -543,16 +540,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 +558,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 411bc66

Please sign in to comment.