Flow.Launcher/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/CustomBrowser.cs

63 lines
1.3 KiB
C#
Raw Permalink Normal View History

using System.Collections.Generic;
using Flow.Launcher.Localization.Attributes;
namespace Flow.Launcher.Plugin.BrowserBookmark.Models;
public class CustomBrowser : BaseModel
{
private string _name;
private string _dataDirectoryPath;
private BrowserType _browserType = BrowserType.Chromium;
2023-02-03 05:07:46 +00:00
public string Name
{
get => _name;
set
2021-09-23 18:32:10 +00:00
{
if (_name != value)
{
_name = value;
OnPropertyChanged();
}
2021-09-23 18:32:10 +00:00
}
}
public string DataDirectoryPath
{
get => _dataDirectoryPath;
set
2023-02-03 05:07:46 +00:00
{
if (_dataDirectoryPath != value)
{
_dataDirectoryPath = value;
OnPropertyChanged();
}
2023-02-03 05:07:46 +00:00
}
}
public List<BrowserTypeLocalized> AllBrowserTypes { get; } = BrowserTypeLocalized.GetValues();
public BrowserType BrowserType
2023-02-03 05:07:46 +00:00
{
get => _browserType;
set
{
if (_browserType != value)
{
_browserType = value;
OnPropertyChanged();
}
}
}
2023-02-03 05:07:46 +00:00
}
[EnumLocalize]
public enum BrowserType
{
[EnumLocalizeValue("Chromium")]
Chromium,
[EnumLocalizeValue("Firefox")]
Firefox,
}