[FZEditor] Create new custom layout with one zone by default (#9440)

This commit is contained in:
Seraphima Zykova
2021-02-03 15:56:08 +03:00
committed by GitHub
parent f4f12b7dcb
commit 4bba8bc173

View File

@@ -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();