We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6606a3e commit 14756b0Copy full SHA for 14756b0
1 file changed
UnityHubNative.Net/UnityProjectView.cs
@@ -67,19 +67,27 @@ private void OnPathLinkClicked()
67
OsUtils.OpenExplorer(unityProject.path);
68
}
69
70
- public void OpenProject()
+ public async void OpenProject()
71
{
72
if (unityProject is null)
73
return;
74
if (!unityProject.unity.HasValue)
75
76
_unityVersionComboBox.Focus();
77
_unityVersionComboBox.IsDropDownOpen = true;
78
+ _unityVersionComboBox.DropDownClosed += DropDownClosed;
79
80
81
unityProject.OpenProject();
82
+
83
+ void DropDownClosed(object? sender, EventArgs e)
84
+ {
85
+ _unityVersionComboBox.DropDownClosed -= DropDownClosed;
86
+ OpenProject();
87
+ }
88
89
90
91
public override string ToString() => unityProject?.name ?? string.Empty;
92
93
public void Update(UnityProject unityProject)
0 commit comments