diff --git a/Flow.Launcher.Infrastructure/UserSettings/CustomShortcutModel.cs b/Flow.Launcher.Infrastructure/UserSettings/CustomShortcutModel.cs index eb10a3fbf..d4dab8461 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/CustomShortcutModel.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/CustomShortcutModel.cs @@ -1,7 +1,4 @@ -using NLog.Time; -using System; -using System.Security.Cryptography.X509Certificates; -using System.Security.RightsManagement; +using System; using System.Text.Json.Serialization; namespace Flow.Launcher.Infrastructure.UserSettings @@ -11,11 +8,14 @@ namespace Flow.Launcher.Infrastructure.UserSettings { public string Key { get; set; } public string Value { get; set; } - public bool CanBeEdited { get; private set; } // Can be edited by user via dialog + + [JsonIgnore] + public bool CanBeEdited { get; private set; } // Can be edited by user from settings window [JsonIgnore] public Func Expand { get; set; } = () => { return ""; }; + [JsonConstructorAttribute] public CustomShortcutModel(string key, string value) { Key = key;