Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b084541

Browse files
Attempting to fix the close operation
1 parent b0cc696 commit b084541

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PopupWindow.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ private void Open(PopupViewType popupViewType, Action<bool> onClose)
4444
OnClose.SafeInvoke(false);
4545
OnClose = null;
4646

47+
onClose = onClose ?? (b => {
48+
Logger.Trace("Closing Window");
49+
//Close();
50+
});
51+
4752
Logger.Trace("OpenView: {0}", popupViewType.ToString());
4853

4954
var viewNeedsAuthentication = popupViewType == PopupViewType.PublishView;
@@ -172,7 +177,6 @@ public override void Finish(bool result)
172177
{
173178
OnClose.SafeInvoke(result);
174179
OnClose = null;
175-
Close();
176180
base.Finish(result);
177181
}
178182

0 commit comments

Comments
 (0)