From a3e7fb780e7ab235205d533d96915932bb86807b Mon Sep 17 00:00:00 2001 From: administrator Date: Mon, 11 May 2026 18:31:39 +0200 Subject: [PATCH] WebView: Burger-Button im Browser-Modus komplett ausblenden - Strg+B als Alternative --- MainWindow.xaml.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index c86b68a..9ae950a 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -413,7 +413,9 @@ public partial class MainWindow : Window TxtEpgNext.Text = ""; TxtChannelSource.Text = "● Web"; TxtChannelSource.Foreground = new System.Windows.Media.SolidColorBrush( - System.Windows.Media.Color.FromRgb(0xFF, 0x99, 0x00)); // Orange für Web + System.Windows.Media.Color.FromRgb(0xFF, 0x99, 0x00)); + // Burger-Button ausblenden (wuerde Browser-Elemente doppelt klicken) + BtnSidebarToggleOverlay.Visibility = Visibility.Collapsed; // Orange für Web if (_webViewReady) { @@ -1044,7 +1046,9 @@ public partial class MainWindow : Window { SidebarColumn.Width = _categoriesCollapsed ? new GridLength(0) : new GridLength(180); ChannelsColumn.Width = _listCollapsed ? new GridLength(0) : new GridLength(280); - BtnSidebarToggleOverlay.Visibility = (_categoriesCollapsed && _listCollapsed) + // Burger-Button nur bei TV/Radio anzeigen (nicht bei WebView - Doppelklick-Problem) + var isWeb = _currentChannel?.Kind == ChannelKind.Web; + BtnSidebarToggleOverlay.Visibility = (_categoriesCollapsed && _listCollapsed && !isWeb) ? Visibility.Visible : Visibility.Collapsed; _sidebarHidden = _categoriesCollapsed && _listCollapsed; }