2021-11-16 03:09:20 +00:00
|
|
|
using Flow.Launcher.Plugin;
|
2021-12-08 23:51:35 +00:00
|
|
|
using System.Text.Json.Serialization;
|
2021-11-16 03:09:20 +00:00
|
|
|
|
|
|
|
|
namespace Flow.Launcher.Infrastructure.UserSettings
|
|
|
|
|
{
|
|
|
|
|
public class CustomBrowserViewModel : BaseModel
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
public string PrivateArg { get; set; }
|
|
|
|
|
public bool EnablePrivate { get; set; }
|
2021-12-05 07:19:16 +00:00
|
|
|
public bool OpenInTab { get; set; } = true;
|
2021-12-08 23:51:35 +00:00
|
|
|
[JsonIgnore]
|
2021-12-05 07:19:16 +00:00
|
|
|
public bool OpenInNewWindow => !OpenInTab;
|
2021-11-16 03:09:20 +00:00
|
|
|
public bool Editable { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
public CustomBrowserViewModel Copy()
|
|
|
|
|
{
|
|
|
|
|
return new CustomBrowserViewModel
|
|
|
|
|
{
|
|
|
|
|
Name = Name,
|
|
|
|
|
Path = Path,
|
2021-12-08 16:38:37 +00:00
|
|
|
OpenInTab = OpenInTab,
|
2021-11-16 03:09:20 +00:00
|
|
|
PrivateArg = PrivateArg,
|
|
|
|
|
EnablePrivate = EnablePrivate,
|
|
|
|
|
Editable = Editable
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|