Disable search button when popup manager was locked

This commit is contained in:
leo 2020-07-10 09:28:22 +08:00
parent 3d1cc73f67
commit e77b09fb37

View file

@ -311,6 +311,8 @@ namespace SourceGit.UI {
} }
private void OpenSearch(object sender, RoutedEventArgs e) { private void OpenSearch(object sender, RoutedEventArgs e) {
if (PopupManager.IsLocked()) return;
workspace.SelectedItem = historiesSwitch; workspace.SelectedItem = historiesSwitch;
if (histories.searchBar.Margin.Top == 0) { if (histories.searchBar.Margin.Top == 0) {
histories.HideSearchBar(); histories.HideSearchBar();