Skip to content

Commit

Permalink
don't open browser twice for the update button
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Aug 13, 2022
1 parent af8b08d commit 4d5d145
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion VolumeControl/Mixer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,6 @@
<TextBlock
Grid.Column="3"
FlowDirection="RightToLeft"
MouseDown="Handle_CaptionUpdateClick"
Style="{StaticResource CaptionTextBlockStyle}"
ToolTip="{Binding UpdateVersion, Source={StaticResource Settings}, Mode=OneWay}"
Visibility="{Binding UpdateAvailable, Source={StaticResource Settings}, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}">
Expand Down
15 changes: 0 additions & 15 deletions VolumeControl/Mixer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ private void Handle_HotkeyGridRemoveClick(object sender, RoutedEventArgs e)
/// <inheritdoc cref="VolumeControlSettings.ResetHotkeySettings"/>
private void Handle_ResetHotkeysClick(object sender, RoutedEventArgs e) => this.VCSettings.ResetHotkeySettings();

/// <summary>Handles click events on the language datagrid's add button.</summary>
private void Handle_LanguageGridAddClick(object sender, RoutedEventArgs e) => Settings.CustomLocalizationDirectories.Add(string.Empty);
/// <summary>Handles click events on the language datagrid's remove buttons.</summary>
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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 4d5d145

Please sign in to comment.