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