- add option to hide main window on startup
- Fixed #586
This commit is contained in:
xzhao
2016-05-14 21:48:58 +08:00
committed by bao-qian
parent 67ab979a9b
commit 87497d2d09
6 changed files with 18 additions and 1 deletions

View File

@@ -54,6 +54,16 @@ namespace Wox
{
#region General
cbHideOnStartup.Checked += (o, e) =>
{
_settings.HideOnStartup = true;
};
cbHideOnStartup.Unchecked += (o, e) =>
{
_settings.HideOnStartup = false;
};
cbHideWhenDeactive.Checked += (o, e) =>
{
_settings.HideWhenDeactive = true;
@@ -114,6 +124,7 @@ namespace Wox
//MainWindow.pnlResult.lbResults.GetBindingExpression(MaxHeightProperty).UpdateTarget();
};
cbHideOnStartup.IsChecked = _settings.HideOnStartup;
cbHideWhenDeactive.IsChecked = _settings.HideWhenDeactive;
cbDontPromptUpdateMsg.IsChecked = _settings.DontPromptUpdateMsg;
cbRememberLastLocation.IsChecked = _settings.RememberLastLaunchLocation;