From df2d952962d6fc8472b1dcf8a86c4705b7567e03 Mon Sep 17 00:00:00 2001 From: Reuben Hu Date: Mon, 23 Sep 2024 10:56:20 +0700 Subject: [PATCH] Fix hidden browsers showing up in Select window (#164) * Fix where thr browser won't hidden. * Revert "Fix where thr browser won't hidden." This reverts commit fca73ebc3cccb77f498fa20ee72280a1a8e4fa14. * Refixing the Browser Hiding Code --- Source/Hurl.BrowserSelector/Windows/MainWindow.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Hurl.BrowserSelector/Windows/MainWindow.xaml.cs b/Source/Hurl.BrowserSelector/Windows/MainWindow.xaml.cs index 19f45e3d..797c8c0b 100644 --- a/Source/Hurl.BrowserSelector/Windows/MainWindow.xaml.cs +++ b/Source/Hurl.BrowserSelector/Windows/MainWindow.xaml.cs @@ -74,8 +74,11 @@ public void LoadBrowsers() { foreach (var browser in Settings.Browsers) { - var browserBtn = new BrowserButton(browser); - BrowsersList.Children.Add(browserBtn); + if (!browser.Hidden) + { + var browserBtn = new BrowserButton(browser); + BrowsersList.Children.Add(browserBtn); + } } }