mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Improve readability of EditorWindow (#1515)
This commit is contained in:
@@ -21,14 +21,14 @@ namespace FancyZonesEditor
|
|||||||
|
|
||||||
LayoutModel.SerializeDeletedCustomZoneSets();
|
LayoutModel.SerializeDeletedCustomZoneSets();
|
||||||
|
|
||||||
_choosing = true;
|
_backToLayoutPicker = false;
|
||||||
Close();
|
Close();
|
||||||
EditorOverlay.Current.Close();
|
EditorOverlay.Current.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void OnClosed(object sender, EventArgs e)
|
protected void OnClosed(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!_choosing)
|
if (_backToLayoutPicker)
|
||||||
{
|
{
|
||||||
EditorOverlay.Current.ShowLayoutPicker();
|
EditorOverlay.Current.ShowLayoutPicker();
|
||||||
}
|
}
|
||||||
@@ -36,11 +36,10 @@ namespace FancyZonesEditor
|
|||||||
|
|
||||||
protected void OnCancel(object sender, RoutedEventArgs e)
|
protected void OnCancel(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
_choosing = true;
|
_backToLayoutPicker = true;
|
||||||
Close();
|
Close();
|
||||||
EditorOverlay.Current.ShowLayoutPicker();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool _choosing = false;
|
private bool _backToLayoutPicker = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user