mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Editor IO exception handling (#1491)
* Close input stream Show MessageBox with exception message Remove unused arguments Guard all of the Editor input/output code parts and show MessageBox with appropriate message and issue reporting link * Extract showing messageBox into method
This commit is contained in:
@@ -150,11 +150,11 @@ namespace FancyZonesEditor
|
||||
{
|
||||
if (model is GridLayoutModel)
|
||||
{
|
||||
model.Apply(mainEditor.GetZoneRects());
|
||||
model.Apply();
|
||||
}
|
||||
else
|
||||
{
|
||||
model.Apply((model as CanvasLayoutModel).Zones.ToArray());
|
||||
model.Apply();
|
||||
}
|
||||
|
||||
Close();
|
||||
|
||||
Reference in New Issue
Block a user