We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce52988 commit 0cede61Copy full SHA for 0cede61
ElectronNET.API/Entities/MenuItem.cs
@@ -1,6 +1,7 @@
1
using Newtonsoft.Json;
2
using Newtonsoft.Json.Converters;
3
using System;
4
+using System.ComponentModel;
5
6
namespace ElectronNET.API.Entities
7
{
@@ -68,12 +69,14 @@ public class MenuItem
68
69
/// <summary>
70
/// If false, the menu item will be greyed out and unclickable.
71
/// </summary>
- public bool Enabled { get; set; }
72
+ [DefaultValue(true)]
73
+ public bool Enabled { get; set; } = true;
74
75
76
/// If false, the menu item will be entirely hidden.
77
- public bool Visible { get; set; }
78
79
+ public bool Visible { get; set; } = true;
80
81
82
/// Should only be specified for checkbox or radio type menu items.
0 commit comments