mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[FZ Editor] Hack to workaround crash (#9398)
This commit is contained in:
@@ -310,10 +310,18 @@ namespace FancyZonesEditor
|
||||
|
||||
selectedLayoutModel.InitTemplateZones();
|
||||
|
||||
try
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
catch
|
||||
{
|
||||
// See https://github.com/microsoft/PowerToys/issues/9396
|
||||
Hide();
|
||||
}
|
||||
|
||||
App.Overlay.CurrentDataContext = selectedLayoutModel;
|
||||
var mainEditor = App.Overlay;
|
||||
Hide();
|
||||
mainEditor.OpenEditor(selectedLayoutModel);
|
||||
App.Overlay.OpenEditor(selectedLayoutModel);
|
||||
}
|
||||
|
||||
// This is required to fix a WPF rendering bug when using custom chrome
|
||||
|
||||
Reference in New Issue
Block a user