hide tray icon (close #563)

This commit is contained in:
jhdxr
2018-12-19 11:46:27 +08:00
parent 7fe01f0764
commit 3dac6fd1c3
5 changed files with 23 additions and 1 deletions

View File

@@ -85,6 +85,13 @@ namespace Wox
}
}
};
_settings.PropertyChanged += (o, e) =>
{
if (e.PropertyName == nameof(Settings.HideNotifyIcon))
{
_notifyIcon.Visible = !_settings.HideNotifyIcon;
}
};
InitializePosition();
}
@@ -102,7 +109,7 @@ namespace Wox
{
Text = Infrastructure.Constant.Wox,
Icon = Properties.Resources.app,
Visible = true
Visible = !_settings.HideNotifyIcon
};
var menu = new ContextMenuStrip();
var items = menu.Items;