Skip to content

Start MenuRole enum at 1.#369

Merged
GregorBiswanger merged 2 commits intoElectronNET:masterfrom
jjuback:master
Apr 18, 2020
Merged

Start MenuRole enum at 1.#369
GregorBiswanger merged 2 commits intoElectronNET:masterfrom
jjuback:master

Conversation

@jjuback
Copy link

@jjuback jjuback commented Feb 7, 2020

Fix for issue #368. In ElectronNET.API/Menu.cs, the JsonSerializer ignores null/default values, so when a menu item is created as new MenuItem { Role = MenuRole.undo }, it is serialized as an empty object instead of { role: "undo" }. Starting the enum at 1 fixes this problem.

@GregorBiswanger GregorBiswanger self-assigned this Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants