From e77b09fb378073e9e9034846d0f158382a3f89e6 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 10 Jul 2020 09:28:22 +0800 Subject: [PATCH] Disable search button when popup manager was locked --- SourceGit/UI/Dashboard.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SourceGit/UI/Dashboard.xaml.cs b/SourceGit/UI/Dashboard.xaml.cs index 7833c681..3820e52e 100644 --- a/SourceGit/UI/Dashboard.xaml.cs +++ b/SourceGit/UI/Dashboard.xaml.cs @@ -311,6 +311,8 @@ namespace SourceGit.UI { } private void OpenSearch(object sender, RoutedEventArgs e) { + if (PopupManager.IsLocked()) return; + workspace.SelectedItem = historiesSwitch; if (histories.searchBar.Margin.Top == 0) { histories.HideSearchBar();