mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-20 09:49:46 +02:00
Move option for custom program for opening links at the end for better accessibility
This commit is contained in:
@@ -47,12 +47,12 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
checkSmoothScrolling.Checked = Config.EnableSmoothScrolling;
|
checkSmoothScrolling.Checked = Config.EnableSmoothScrolling;
|
||||||
|
|
||||||
comboBoxBrowserPath.Items.Add("(default browser)");
|
comboBoxBrowserPath.Items.Add("(default browser)");
|
||||||
comboBoxBrowserPath.Items.Add("(custom program...)");
|
|
||||||
|
|
||||||
foreach(WindowsUtils.Browser browserInfo in WindowsUtils.FindInstalledBrowsers()){
|
foreach(WindowsUtils.Browser browserInfo in WindowsUtils.FindInstalledBrowsers()){
|
||||||
comboBoxBrowserPath.Items.Add(browserInfo);
|
comboBoxBrowserPath.Items.Add(browserInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comboBoxBrowserPath.Items.Add("(custom program...)");
|
||||||
UpdateBrowserPathSelection();
|
UpdateBrowserPathSelection();
|
||||||
|
|
||||||
trackBarZoom.SetValueSafe(Config.ZoomLevel);
|
trackBarZoom.SetValueSafe(Config.ZoomLevel);
|
||||||
@@ -119,7 +119,7 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
WindowsUtils.Browser browserInfo = comboBoxBrowserPath.Items.OfType<WindowsUtils.Browser>().FirstOrDefault(browser => browser.Path == Config.BrowserPath);
|
WindowsUtils.Browser browserInfo = comboBoxBrowserPath.Items.OfType<WindowsUtils.Browser>().FirstOrDefault(browser => browser.Path == Config.BrowserPath);
|
||||||
|
|
||||||
if (browserInfo == null){
|
if (browserInfo == null){
|
||||||
comboBoxBrowserPath.SelectedIndex = 1;
|
comboBoxBrowserPath.SelectedIndex = comboBoxBrowserPath.Items.Count-1;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
comboBoxBrowserPath.SelectedItem = browserInfo;
|
comboBoxBrowserPath.SelectedItem = browserInfo;
|
||||||
@@ -128,7 +128,7 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void comboBoxBrowserPath_SelectedIndexChanged(object sender, EventArgs e){
|
private void comboBoxBrowserPath_SelectedIndexChanged(object sender, EventArgs e){
|
||||||
if (comboBoxBrowserPath.SelectedIndex == 1){
|
if (comboBoxBrowserPath.SelectedIndex == comboBoxBrowserPath.Items.Count-1){
|
||||||
using(OpenFileDialog dialog = new OpenFileDialog{
|
using(OpenFileDialog dialog = new OpenFileDialog{
|
||||||
AutoUpgradeEnabled = true,
|
AutoUpgradeEnabled = true,
|
||||||
DereferenceLinks = true,
|
DereferenceLinks = true,
|
||||||
|
Reference in New Issue
Block a user