"Clear the previous query on launch" has a flicker (#10291)

This commit is contained in:
Mykhailo Pylyp
2021-03-18 20:04:04 +02:00
committed by GitHub
parent 5e9a31eaa7
commit 3a15276668
3 changed files with 29 additions and 14 deletions

View File

@@ -161,20 +161,12 @@ namespace PowerLauncher
_settings.WindowLeft = Left;
}
private void OnActivated(object sender, EventArgs e)
{
if (_settings.ClearInputOnLaunch)
{
_viewModel.ClearQueryCommand.Execute(null);
}
}
private void OnDeactivated(object sender, EventArgs e)
{
if (_settings.HideWhenDeactivated)
{
// (this.FindResource("OutroStoryboard") as Storyboard).Begin();
Hide();
_viewModel.Hide();
}
}