From bfa762296d2623bc1f34647e7c2e19509dfa4d4a Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 17 Mar 2025 20:42:58 +0800 Subject: [PATCH] Improve performance --- Flow.Launcher/SettingWindow.xaml.cs | 4 ++-- Flow.Launcher/ViewModel/MainViewModel.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index d7f8489af..28140f024 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -92,13 +92,13 @@ public partial class SettingWindow { if (WindowState == WindowState.Maximized) { - MaximizeButton.Visibility = Visibility.Collapsed; + MaximizeButton.Visibility = Visibility.Hidden; RestoreButton.Visibility = Visibility.Visible; } else { MaximizeButton.Visibility = Visibility.Visible; - RestoreButton.Visibility = Visibility.Collapsed; + RestoreButton.Visibility = Visibility.Hidden; } } diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 46e2f8c55..0ee6751e2 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -675,7 +675,6 @@ namespace Flow.Launcher.ViewModel Results.Visibility = Visibility.Collapsed; _queryTextBeforeLeaveResults = QueryText; - // Because of Fody's optimization // setter won't be called when property value is not changed. // so we need manually call Query()