Flow.Launcher/Plugins/Flow.Launcher.Plugin.Url/SettingsControl.xaml.cs

28 lines
650 B
C#
Raw Permalink Normal View History

2025-09-04 14:06:02 +00:00
using System.Windows;
using System.Windows.Controls;
namespace Flow.Launcher.Plugin.Url;
public partial class SettingsControl : UserControl
{
2025-09-15 07:18:23 +00:00
public Settings Settings { get; } = Main.Settings;
2025-09-04 14:06:02 +00:00
public SettingsControl()
{
InitializeComponent();
}
private void SelectBrowserPath(object sender, RoutedEventArgs e)
{
var dlg = new Microsoft.Win32.OpenFileDialog
{
2025-09-28 04:04:32 +00:00
Filter = Localize.flowlauncher_plugin_url_plugin_filter()
2025-09-04 14:06:02 +00:00
};
if (dlg.ShowDialog() == true && !string.IsNullOrEmpty(dlg.FileName))
{
Settings.BrowserPath = dlg.FileName;
}
}
}