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()