Command refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System.Globalization;
|
||||
using Avalonia.Data.Converters;
|
||||
using FileTime.App.Core.Command;
|
||||
using FileTime.App.Core.UserCommand;
|
||||
|
||||
namespace FileTime.GuiApp.Converters;
|
||||
|
||||
@@ -8,7 +8,7 @@ public class CommandToCommandNameConverter : IValueConverter
|
||||
{
|
||||
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
if(value is not Command command) return value;
|
||||
if(value is not IUserCommand command) return value;
|
||||
|
||||
//TODO: implement
|
||||
return command.ToString();
|
||||
|
||||
Reference in New Issue
Block a user