mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #369] [MERGED] Start MenuRole enum at 1. #1152
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/369
Author: @jjuback
Created: 2/7/2020
Status: ✅ Merged
Merged: 4/18/2020
Merged by: @GregorBiswanger
Base:
master← Head:master📝 Commits (2)
92356d3Start MenuRole enum at 1.88b0437Merge branch 'master' of https://github.com/ElectronNET/Electron.NET📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
ElectronNET.API/Entities/MenuRole.cs(+1 -1)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.