Skip to content

Commit 334d58d

Browse files
Fix json load
1 parent 5879c84 commit 334d58d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Flow.Launcher.Infrastructure/UserSettings/CustomShortcutModel.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using NLog.Time;
2-
using System;
3-
using System.Security.Cryptography.X509Certificates;
4-
using System.Security.RightsManagement;
1+
using System;
52
using System.Text.Json.Serialization;
63

74
namespace Flow.Launcher.Infrastructure.UserSettings
@@ -11,11 +8,14 @@ public class CustomShortcutModel
118
{
129
public string Key { get; set; }
1310
public string Value { get; set; }
14-
public bool CanBeEdited { get; private set; } // Can be edited by user via dialog
11+
12+
[JsonIgnore]
13+
public bool CanBeEdited { get; private set; } // Can be edited by user from settings window
1514

1615
[JsonIgnore]
1716
public Func<string> Expand { get; set; } = () => { return ""; };
1817

18+
[JsonConstructorAttribute]
1919
public CustomShortcutModel(string key, string value)
2020
{
2121
Key = key;

0 commit comments

Comments
 (0)