mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[FZEditor] Create new custom layout with one zone by default (#9440)
This commit is contained in:
@@ -304,10 +304,9 @@ namespace FancyZonesEditor
|
||||
}
|
||||
else
|
||||
{
|
||||
selectedLayoutModel = new CanvasLayoutModel(LayoutNameText.Text, LayoutType.Custom)
|
||||
{
|
||||
TemplateZoneCount = 0,
|
||||
};
|
||||
CanvasLayoutModel canvasModel = new CanvasLayoutModel(LayoutNameText.Text, LayoutType.Custom);
|
||||
canvasModel.AddZone();
|
||||
selectedLayoutModel = canvasModel;
|
||||
}
|
||||
|
||||
selectedLayoutModel.InitTemplateZones();
|
||||
|
||||
Reference in New Issue
Block a user