From 6911a90987ae20b3b15b88afa7ac551906a2c01f Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 7 Apr 2021 15:07:08 +0200 Subject: [PATCH] - add open option to context menu --- Mystify/App.axaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mystify/App.axaml.cs b/Mystify/App.axaml.cs index 5304915..e6803c4 100644 --- a/Mystify/App.axaml.cs +++ b/Mystify/App.axaml.cs @@ -41,9 +41,11 @@ namespace Mystify ContextMenu notifyIconContextMenu = new() { - Items = new List + Items = new List { - new() {Header = "Close", Command = ReactiveCommand.Create(() => desktopStyleApplicationLifetime.Shutdown())} + new MenuItem {Header = "Open Mystify", Command = ReactiveCommand.Create(() => _mainWindow?.Show())}, + new Separator(), + new MenuItem {Header = "Close", Command = ReactiveCommand.Create(() => desktopStyleApplicationLifetime.Shutdown())} } };