Skip to content

Commit

Permalink
[FancyZones Editor] Prevent opening content dialog twice (#13621)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphimaZykova committed Oct 5, 2021
1 parent cf2ec69 commit bec0dc3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ private void Select(LayoutModel newSelection)

private async void NewLayoutButton_Click(object sender, RoutedEventArgs e)
{
if (_openedDialog != null)
{
// another dialog already opened
return;
}

string defaultNamePrefix = FancyZonesEditor.Properties.Resources.Default_Custom_Layout_Name;
int maxCustomIndex = 0;
foreach (LayoutModel customModel in MainWindowSettingsModel.CustomModels)
Expand Down

0 comments on commit bec0dc3

Please sign in to comment.