Rip out Microsoft's configuration and replace because it simply doesn't support polymorphism.... we are getting advanced boys!!!
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
namespace Hyperbar.Windows.Primary;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
public interface IPrimaryCommandConfiguration
|
||||
namespace Hyperbar.Windows.Primary;
|
||||
|
||||
[JsonDerivedType(typeof(KeyAcceleratorCommandConfiguration), typeDiscriminator: "KeyAcceleratorCommand")]
|
||||
[JsonDerivedType(typeof(ProcessCommandConfiguration), typeDiscriminator: "ProcessCommand")]
|
||||
public class PrimaryCommandConfiguration
|
||||
{
|
||||
public string? Icon { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user