mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-22 00:15:48 +02:00
Move option for custom program for opening links at the end for better accessibility
This commit is contained in:
parent
4d64243a07
commit
f1e8b3fbf0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user