mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3389 from Flow-Launcher/show_hide_performance
Remove useless delay
This commit is contained in:
commit
fe62a03b4d
1 changed files with 2 additions and 3 deletions
|
|
@ -1458,7 +1458,8 @@ namespace Flow.Launcher.ViewModel
|
|||
mainWindow.ClockPanel.Opacity = opacity;
|
||||
mainWindow.SearchIcon.Opacity = opacity;
|
||||
|
||||
if (QueryText.Length != 0)
|
||||
// QueryText sometimes is null when it is just initialized
|
||||
if (QueryText != null && QueryText.Length != 0)
|
||||
{
|
||||
mainWindow.ClockPanel.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
|
@ -1554,8 +1555,6 @@ namespace Flow.Launcher.ViewModel
|
|||
Win32Helper.RestorePreviousKeyboardLayout();
|
||||
}
|
||||
|
||||
await Task.Delay(50);
|
||||
|
||||
// Update WPF properties
|
||||
//MainWindowOpacity = 0;
|
||||
MainWindowVisibilityStatus = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue