mirror of
https://github.com/ckaczor/FloatingStatusWindow.git
synced 2026-01-13 17:22:47 -05:00
Add support for an about menu
This commit is contained in:
@@ -118,6 +118,15 @@ namespace FloatingStatusWindowLibrary
|
||||
|
||||
contextMenu.Items.Add(new Separator());
|
||||
|
||||
if (_windowSource.HasAboutMenu)
|
||||
{
|
||||
menuItem = new MenuItem { Header = Resources.ContextMenuAbout };
|
||||
menuItem.Click += (sender, args) => _windowSource.ShowAbout();
|
||||
contextMenu.Items.Add(menuItem);
|
||||
|
||||
contextMenu.Items.Add(new Separator());
|
||||
}
|
||||
|
||||
menuItem = new MenuItem
|
||||
{
|
||||
Name = "contextMenuItemExit",
|
||||
|
||||
Reference in New Issue
Block a user