Improve readability of EditorWindow (#1515)

This commit is contained in:
stefansjfw
2020-03-11 16:38:13 +01:00
committed by GitHub
parent 4632224e9b
commit 83901e5fbb

View File

@@ -21,14 +21,14 @@ namespace FancyZonesEditor
LayoutModel.SerializeDeletedCustomZoneSets();
_choosing = true;
_backToLayoutPicker = false;
Close();
EditorOverlay.Current.Close();
}
protected void OnClosed(object sender, EventArgs e)
{
if (!_choosing)
if (_backToLayoutPicker)
{
EditorOverlay.Current.ShowLayoutPicker();
}
@@ -36,11 +36,10 @@ namespace FancyZonesEditor
protected void OnCancel(object sender, RoutedEventArgs e)
{
_choosing = true;
_backToLayoutPicker = true;
Close();
EditorOverlay.Current.ShowLayoutPicker();
}
private bool _choosing = false;
private bool _backToLayoutPicker = true;
}
}