Remove redundant code

1. remove this
2. auto property should be only 1 line
3. misc
4. part of refactoring for PR #494
This commit is contained in:
bao-qian
2016-02-21 15:42:37 +00:00
parent 533bc4c2fe
commit 320f78b31b
9 changed files with 232 additions and 347 deletions

View File

@@ -35,9 +35,9 @@ namespace Wox
public SettingWindow(IPublicAPI api)
{
this._api = api;
_api = api;
InitializeComponent();
this.ResultListBoxPreview.DataContext = new ResultsViewModel();
ResultListBoxPreview.DataContext = new ResultsViewModel();
Loaded += Setting_Loaded;
}
@@ -259,11 +259,11 @@ namespace Wox
{
if (!App.Window.IsVisible)
{
this._api.ShowApp();
_api.ShowApp();
}
else
{
this._api.HideApp();
_api.HideApp();
}
});
RemoveHotkey(UserSettingStorage.Instance.Hotkey);