From 3769465fe1709256091f47dadf9e1c4414d21634 Mon Sep 17 00:00:00 2001 From: Bagus Nur Listiyono Date: Sat, 13 Jul 2024 13:39:19 +0700 Subject: [PATCH] Remove method to disable slider popup It causes EVERY popup to be disabled, not just sliders and yeah, it does it for the entire app LMAO --- .../GameSettingsPages/ZenlessGameSettingsPage.xaml.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml.cs b/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml.cs index 17e174cce..945d39340 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml.cs +++ b/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml.cs @@ -51,7 +51,6 @@ public ZenlessGameSettingsPage() }); LoadPage(); - this.ColorFilterSlider.LayoutUpdated += ColFilSlider_DisablePopup; } catch (Exception ex) { @@ -300,15 +299,5 @@ private void OnUnload(object sender, RoutedEventArgs e) RegistryWatcher?.Dispose(); }); } - - // https://stackoverflow.com/questions/76737204/regarding-sliders-in-win-ui - private void ColFilSlider_DisablePopup(object _, object n) - { - if (VisualTreeHelper.GetOpenPopupsForXamlRoot(this.ColorFilterSlider.XamlRoot) - .FirstOrDefault() is { } popup) - { - popup.Visibility = Visibility.Collapsed; - } - } } }