mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
27 lines
650 B
C#
27 lines
650 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace Flow.Launcher.Plugin.Url;
|
|
|
|
public partial class SettingsControl : UserControl
|
|
{
|
|
public Settings Settings { get; } = Main.Settings;
|
|
|
|
public SettingsControl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void SelectBrowserPath(object sender, RoutedEventArgs e)
|
|
{
|
|
var dlg = new Microsoft.Win32.OpenFileDialog
|
|
{
|
|
Filter = Localize.flowlauncher_plugin_url_plugin_filter()
|
|
};
|
|
|
|
if (dlg.ShowDialog() == true && !string.IsNullOrEmpty(dlg.FileName))
|
|
{
|
|
Settings.BrowserPath = dlg.FileName;
|
|
}
|
|
}
|
|
}
|