mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Keep tray icon lock menu option in sync
This commit is contained in:
@@ -21,6 +21,7 @@ internal static class NotificationIcon
|
||||
|
||||
// Setup the menu
|
||||
var contextMenu = new ContextMenu();
|
||||
contextMenu.Opened += HandleContextMenuOpened;
|
||||
|
||||
_lockMenuItem = new MenuItem()
|
||||
{
|
||||
@@ -46,6 +47,11 @@ internal static class NotificationIcon
|
||||
_notificationIcon.ForceCreate(false);
|
||||
}
|
||||
|
||||
private static void HandleContextMenuOpened(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
_lockMenuItem.IsChecked = Settings.Default.WindowLocked;
|
||||
}
|
||||
|
||||
private static void HandleNotificationIconDoubleClick(object sender, System.EventArgs e)
|
||||
{
|
||||
// Bring the main form to the front
|
||||
|
||||
Reference in New Issue
Block a user