Item double click (run or open)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using FileTime.App.Core.ViewModels;
|
||||
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
|
||||
public class RunOrOpenCommand : IUserCommand
|
||||
{
|
||||
public IItemViewModel? Item { get; init; }
|
||||
}
|
||||
|
||||
public sealed class IdentifiableRunOrOpenCommand : RunOrOpenCommand, IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "run_or_open";
|
||||
public static IdentifiableRunOrOpenCommand Instance { get; } = new();
|
||||
|
||||
private IdentifiableRunOrOpenCommand()
|
||||
{
|
||||
}
|
||||
|
||||
public string UserCommandID => CommandName;
|
||||
|
||||
public string Title => "Open or run";
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public sealed class RunOrOpenCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "run_or_open";
|
||||
public static RunOrOpenCommand Instance { get; } = new();
|
||||
|
||||
private RunOrOpenCommand()
|
||||
{
|
||||
}
|
||||
|
||||
public string UserCommandID => CommandName;
|
||||
|
||||
public string Title => "Open or run";
|
||||
}
|
||||
Reference in New Issue
Block a user