mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user