mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-31 14:35:18 +00:00
Improve readability of EditorWindow (#1515)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user