From 4d5d145a4689a06db2f3b0be62f201b0150554ed Mon Sep 17 00:00:00 2001 From: radj307 Date: Sat, 13 Aug 2022 15:36:19 -0400 Subject: [PATCH] don't open browser twice for the update button --- VolumeControl/Mixer.xaml | 1 - VolumeControl/Mixer.xaml.cs | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/VolumeControl/Mixer.xaml b/VolumeControl/Mixer.xaml index 438af3293..ca23d5da4 100644 --- a/VolumeControl/Mixer.xaml +++ b/VolumeControl/Mixer.xaml @@ -1189,7 +1189,6 @@ diff --git a/VolumeControl/Mixer.xaml.cs b/VolumeControl/Mixer.xaml.cs index 70f8def1c..c40f66cb1 100644 --- a/VolumeControl/Mixer.xaml.cs +++ b/VolumeControl/Mixer.xaml.cs @@ -89,20 +89,6 @@ private void Handle_HotkeyGridRemoveClick(object sender, RoutedEventArgs e) /// private void Handle_ResetHotkeysClick(object sender, RoutedEventArgs e) => this.VCSettings.ResetHotkeySettings(); - /// Handles click events on the language datagrid's add button. - private void Handle_LanguageGridAddClick(object sender, RoutedEventArgs e) => Settings.CustomLocalizationDirectories.Add(string.Empty); - /// Handles click events on the language datagrid's remove buttons. - private void Handle_LanguageGridRemoveClick(object sender, RoutedEventArgs e) - { - if ((sender as Button)?.CommandParameter is string name) - { - int pos = Settings.CustomLocalizationDirectories.IndexOf(name); - if (pos != -1) - { - _ = Settings.CustomLocalizationDirectories.RemoveAt(pos); - } - } - } private void Handle_BrowseForLogFilePathClick(object sender, RoutedEventArgs e) { string myDir = Path.GetDirectoryName(this.VCSettings.ExecutablePath) ?? string.Empty; @@ -161,7 +147,6 @@ private void Handle_ThreeStateCheckboxClick(object sender, RoutedEventArgs e) private void Handle_MaximizeClick(object sender, RoutedEventArgs e) => this.WindowState = WindowState.Maximized; private void Handle_CloseClick(object sender, RoutedEventArgs e) => this.Close(); private void Handle_CheckForUpdatesClick(object sender, RoutedEventArgs e) => this.VCSettings.Updater.CheckNow(); - private void Handle_CaptionUpdateClick(object sender, System.Windows.Input.MouseButtonEventArgs e) => Updater.OpenBrowser(Updater._htmlURLLatest); private void Handle_LogFilterBoxSelectionChanged(object sender, SelectionChangedEventArgs e) => logFilterBox.SelectedItem = null; private void Handle_KeySelectorKeyDown(object sender, System.Windows.Input.KeyEventArgs e) {