2021-11-05 19:16:20 +00:00
|
|
|
|
using Flow.Launcher.Plugin;
|
2021-11-02 20:07:11 +00:00
|
|
|
|
|
|
|
|
|
|
namespace Flow.Launcher.ViewModel
|
|
|
|
|
|
{
|
2021-11-05 19:16:20 +00:00
|
|
|
|
public class CustomExplorerViewModel : BaseModel
|
2021-11-02 20:07:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
public string FileArgument { get; set; } = "\"%d\"";
|
|
|
|
|
|
public string DirectoryArgument { get; set; } = "\"%d\"";
|
|
|
|
|
|
public bool Editable { get; init; } = true;
|
2021-11-05 19:16:20 +00:00
|
|
|
|
|
|
|
|
|
|
public CustomExplorerViewModel Copy()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new CustomExplorerViewModel
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = Name,
|
|
|
|
|
|
Path = Path,
|
|
|
|
|
|
FileArgument = FileArgument,
|
|
|
|
|
|
DirectoryArgument = DirectoryArgument,
|
|
|
|
|
|
Editable = Editable
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
2021-11-02 20:07:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|