From f1e8b3fbf084c23066c42c90da34c35d61f305b6 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Sun, 21 Jan 2018 06:33:50 +0100 Subject: [PATCH] Move option for custom program for opening links at the end for better accessibility --- Core/Other/Settings/TabSettingsGeneral.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Other/Settings/TabSettingsGeneral.cs b/Core/Other/Settings/TabSettingsGeneral.cs index 25f19771..16cfd429 100644 --- a/Core/Other/Settings/TabSettingsGeneral.cs +++ b/Core/Other/Settings/TabSettingsGeneral.cs @@ -47,12 +47,12 @@ public TabSettingsGeneral(FormBrowser browser, UpdateHandler updates){ checkSmoothScrolling.Checked = Config.EnableSmoothScrolling; comboBoxBrowserPath.Items.Add("(default browser)"); - comboBoxBrowserPath.Items.Add("(custom program...)"); foreach(WindowsUtils.Browser browserInfo in WindowsUtils.FindInstalledBrowsers()){ comboBoxBrowserPath.Items.Add(browserInfo); } - + + comboBoxBrowserPath.Items.Add("(custom program...)"); UpdateBrowserPathSelection(); trackBarZoom.SetValueSafe(Config.ZoomLevel); @@ -119,7 +119,7 @@ private void UpdateBrowserPathSelection(){ WindowsUtils.Browser browserInfo = comboBoxBrowserPath.Items.OfType<WindowsUtils.Browser>().FirstOrDefault(browser => browser.Path == Config.BrowserPath); if (browserInfo == null){ - comboBoxBrowserPath.SelectedIndex = 1; + comboBoxBrowserPath.SelectedIndex = comboBoxBrowserPath.Items.Count-1; } else{ comboBoxBrowserPath.SelectedItem = browserInfo; @@ -128,7 +128,7 @@ private void UpdateBrowserPathSelection(){ } private void comboBoxBrowserPath_SelectedIndexChanged(object sender, EventArgs e){ - if (comboBoxBrowserPath.SelectedIndex == 1){ + if (comboBoxBrowserPath.SelectedIndex == comboBoxBrowserPath.Items.Count-1){ using(OpenFileDialog dialog = new OpenFileDialog{ AutoUpgradeEnabled = true, DereferenceLinks = true,