From 89c3cb1bbcff282c70b90993bbb91ad74a01c77b Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 27 Mar 2025 14:38:26 +0800 Subject: [PATCH] Remove redundant animation --- Flow.Launcher/MainWindow.xaml.cs | 2 +- Flow.Launcher/ViewModel/MainViewModel.cs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 6ddee16c2..25d9c5d2d 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -761,7 +761,7 @@ namespace Flow.Launcher _viewModel.ProgressBarVisibility = Visibility.Hidden; } - public void WindowAnimation() + private void WindowAnimation() { _isArrowKeyPressed = true; diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index c0465b074..9b2ad2d40 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1478,10 +1478,6 @@ namespace Flow.Launcher.ViewModel // 📌 Restore UI elements //mainWindow.SearchIcon.Visibility = Visibility.Visible; - if (Settings.UseAnimation) - { - mainWindow.WindowAnimation(); - } } }, DispatcherPriority.Render);