Skip to content

Commit 7b9d42a

Browse files
committed
Deleted old commented outs
1 parent f611262 commit 7b9d42a

File tree

1 file changed

+1
-72
lines changed

1 file changed

+1
-72
lines changed

Sources/Winget-AutoUpdate/WAU-Settings-GUI.ps1

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,82 +1571,11 @@ function Show-WAUSettingsGUI {
15711571
}) | Out-Null
15721572
})
15731573

1574-
# Handle Enter key to save settings
1574+
# Key Handlers
15751575
$window.Add_PreviewKeyDown({
15761576
Test-WindowKeyPress -controls $controls -window $window -keyEventArgs $_
1577-
1578-
# if ($_.Key -eq 'Return' -or $_.Key -eq 'Enter') {
1579-
# $controls.SaveButton.RaiseEvent([Windows.RoutedEventArgs][Windows.Controls.Primitives.ButtonBase]::ClickEvent)
1580-
# $_.Handled = $true
1581-
# }
1582-
# # F5 key handler to refresh settings from config
1583-
# elseif ($_.Key -eq 'F5') {
1584-
# # Update status to "Loading"
1585-
# $controls.StatusBarText.Text = "Loading..."
1586-
# $controls.StatusBarText.Foreground = $Script:COLOR_ACTIVE
1587-
# Start-PopUp "Loading WAU Data..."
1588-
1589-
# # Refresh all settings from config
1590-
# Update-WAUGUIFromConfig -Controls $controls
1591-
1592-
# # Reset status to "Done"
1593-
# $controls.StatusBarText.Text = $Script:STATUS_DONE_TEXT
1594-
# $controls.StatusBarText.Foreground = $Script:COLOR_ENABLED
1595-
1596-
# # Create timer to reset status back to ready after half standard wait time
1597-
# $window.Dispatcher.BeginInvoke([System.Windows.Threading.DispatcherPriority]::Background, [Action]{
1598-
# Start-Sleep -Milliseconds ($Script:WAIT_TIME / 2)
1599-
# $controls.StatusBarText.Text = $Script:STATUS_READY_TEXT
1600-
# $controls.StatusBarText.Foreground = $Script:COLOR_INACTIVE
1601-
# Close-PopUp
1602-
# }) | Out-Null
1603-
1604-
# $_.Handled = $true
1605-
# }
1606-
# # F12 key handler to toggle dev buttons visibility
1607-
# if ($_.Key -eq 'F12') {
1608-
# if ($controls.DevTaskButton.Visibility -eq 'Collapsed') {
1609-
# $controls.DevTaskButton.Visibility = 'Visible'
1610-
# $controls.DevRegButton.Visibility = 'Visible'
1611-
# $controls.DevGUIDButton.Visibility = 'Visible'
1612-
# $controls.DevListButton.Visibility = 'Visible'
1613-
# $controls.DevMSTButton.Visibility = 'Visible'
1614-
# $controls.LinksStackPanel.Visibility = 'Visible'
1615-
# $window.Title = "$Script:WAU_TITLE - Dev Tools"
1616-
# } else {
1617-
# $controls.DevTaskButton.Visibility = 'Collapsed'
1618-
# $controls.DevRegButton.Visibility = 'Collapsed'
1619-
# $controls.DevGUIDButton.Visibility = 'Collapsed'
1620-
# $controls.DevListButton.Visibility = 'Collapsed'
1621-
# $controls.DevMSTButton.Visibility = 'Collapsed'
1622-
# $controls.LinksStackPanel.Visibility = 'Collapsed'
1623-
# $window.Title = "$Script:WAU_TITLE"
1624-
# }
1625-
# $_.Handled = $true
1626-
# }
16271577
})
16281578

1629-
# ESC key handler to close window
1630-
# $window.Add_KeyDown({
1631-
# if ($_.Key -eq "Escape") {
1632-
# $controls.StatusBarText.Text = $Script:STATUS_DONE_TEXT
1633-
# $controls.StatusBarText.Foreground = $Script:COLOR_ENABLED
1634-
1635-
# # Create timer to reset status and close window after half standard wait time
1636-
# $timer = New-Object System.Windows.Threading.DispatcherTimer
1637-
# $timer.Interval = [TimeSpan]::FromMilliseconds($Script:WAIT_TIME / 2)
1638-
# $timer.Add_Tick({
1639-
# $controls.StatusBarText.Text = "$Script:STATUS_READY_TEXT"
1640-
# $controls.StatusBarText.Foreground = "$Script:COLOR_INACTIVE"
1641-
# if ($null -ne $timer) {
1642-
# $timer.Stop()
1643-
# }
1644-
# $window.Close()
1645-
# })
1646-
# $timer.Start()
1647-
# }
1648-
# })
1649-
16501579
$controls.OpenLogsButton.Add_Click({
16511580
try {
16521581
Start-PopUp "WAU Log directory opening..."

0 commit comments

Comments
 (0)