Null Left/RightWindowCommands (#8028)

This commit is contained in:
stefansjfw 2020-11-13 17:32:48 +01:00 committed by GitHub
parent c1b1fe6371
commit 4910bd3feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,8 @@ namespace FancyZonesEditor
_mainWindow.ShowActivated = true;
_mainWindow.Topmost = true;
_mainWindow.Show();
_mainWindow.LeftWindowCommands = null;
_mainWindow.RightWindowCommands = null;
// window is set to topmost to make sure it shows on top of PowerToys settings page
// we can reset topmost flag now

View File

@ -166,12 +166,17 @@ namespace FancyZonesEditor
}
window.Owner = EditorOverlay.Current;
window.DataContext = model;
window.Show();
if (isGrid)
{
(window as GridEditorWindow).NameTextBox().Focus();
}
window.LeftWindowCommands = null;
window.RightWindowCommands = null;
}
private void Apply_Click(object sender, RoutedEventArgs e)