Skip to content

Commit

Permalink
Improve readability of EditorWindow (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansjfw authored Mar 11, 2020
1 parent 4632224 commit 83901e5
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,25 @@ protected void OnSaveApplyTemplate(object sender, RoutedEventArgs e)

LayoutModel.SerializeDeletedCustomZoneSets();

_choosing = true;
_backToLayoutPicker = false;
Close();
EditorOverlay.Current.Close();
}

protected void OnClosed(object sender, EventArgs e)
{
if (!_choosing)
if (_backToLayoutPicker)
{
EditorOverlay.Current.ShowLayoutPicker();
}
}

protected void OnCancel(object sender, RoutedEventArgs e)
{
_choosing = true;
_backToLayoutPicker = true;
Close();
EditorOverlay.Current.ShowLayoutPicker();
}

private bool _choosing = false;
private bool _backToLayoutPicker = true;
}
}

0 comments on commit 83901e5

Please sign in to comment.