mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
hide tray icon (close #563)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user