From fe30d138def0b37607d1f736da913346507b603c Mon Sep 17 00:00:00 2001 From: Fraser Greenroyd Date: Wed, 30 Nov 2022 10:18:44 +0000 Subject: [PATCH] Protect against OnDocumentEndOpening not setting m_documentOpening to false --- BHoM_UI/Global/DocumentListener.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BHoM_UI/Global/DocumentListener.cs b/BHoM_UI/Global/DocumentListener.cs index d79284a..adfbd2b 100644 --- a/BHoM_UI/Global/DocumentListener.cs +++ b/BHoM_UI/Global/DocumentListener.cs @@ -63,6 +63,8 @@ public static void OnDocumentBeginOpening(string documentName) public static void OnDocumentEndOpening(string documentName) { + BH.Engine.UI.Compute.SetDocumentOpeningState(false); + if (string.IsNullOrEmpty(documentName) || !m_OpeningTimes.ContainsKey(documentName)) return; @@ -78,8 +80,6 @@ public static void OnDocumentEndOpening(string documentName) m_VersioningFormThead = new Thread(ShowForm); m_VersioningFormThead.Start(events); } - - BH.Engine.UI.Compute.SetDocumentOpeningState(false); } /*************************************/