From ff0d9e982235de0def74d7e20f3ba643e966a77f Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Mon, 5 Aug 2024 11:04:23 -0700 Subject: [PATCH] Fix visual flicker on form load --- NAPS2.Lib/EtoForms/Layout/LayoutController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NAPS2.Lib/EtoForms/Layout/LayoutController.cs b/NAPS2.Lib/EtoForms/Layout/LayoutController.cs index 1363dac434..ed608e340e 100644 --- a/NAPS2.Lib/EtoForms/Layout/LayoutController.cs +++ b/NAPS2.Lib/EtoForms/Layout/LayoutController.cs @@ -39,7 +39,7 @@ public void Bind(Window window) if (_window != null) throw new InvalidOperationException(); _window = window; window.Content = _layout; - window.Shown += (_, _) => + window.LoadComplete += (_, _) => { _isShown = true; DoLayout();