Flow.Launcher/Flow.Launcher.Infrastructure/UserSettings/CustomExplorerViewModel.cs

31 lines
849 B
C#
Raw Permalink Normal View History

2021-11-05 19:16:20 +00:00
using Flow.Launcher.Plugin;
using System;
2021-11-02 20:07:11 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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
}
}