mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
[FancyZones Editor] Prevent opening content dialog twice (#13621)
This commit is contained in:
@@ -161,6 +161,12 @@ namespace FancyZonesEditor
|
|||||||
|
|
||||||
private async void NewLayoutButton_Click(object sender, RoutedEventArgs e)
|
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;
|
string defaultNamePrefix = FancyZonesEditor.Properties.Resources.Default_Custom_Layout_Name;
|
||||||
int maxCustomIndex = 0;
|
int maxCustomIndex = 0;
|
||||||
foreach (LayoutModel customModel in MainWindowSettingsModel.CustomModels)
|
foreach (LayoutModel customModel in MainWindowSettingsModel.CustomModels)
|
||||||
|
|||||||
Reference in New Issue
Block a user