mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-24 04:12:32 +08:00
[FancyZones Editor] Prevent opening content dialog twice (#13621)
This commit is contained in:
parent
cf2ec690db
commit
bec0dc3c0b
@ -161,6 +161,12 @@ namespace FancyZonesEditor
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user