Skip to content

Commit

Permalink
Protect against OnDocumentEndOpening not setting m_documentOpening to…
Browse files Browse the repository at this point in the history
… false
  • Loading branch information
Fraser Greenroyd committed Nov 30, 2022
1 parent 840f0bd commit 68e4690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BHoM_UI/Global/DocumentListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}

/*************************************/
Expand Down

0 comments on commit 68e4690

Please sign in to comment.