File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -67,19 +67,27 @@ private void OnPathLinkClicked()
67
67
OsUtils . OpenExplorer ( unityProject . path ) ;
68
68
}
69
69
70
- public void OpenProject ( )
70
+ public async void OpenProject ( )
71
71
{
72
72
if ( unityProject is null )
73
73
return ;
74
74
if ( ! unityProject . unity . HasValue )
75
75
{
76
76
_unityVersionComboBox . Focus ( ) ;
77
77
_unityVersionComboBox . IsDropDownOpen = true ;
78
+ _unityVersionComboBox . DropDownClosed += DropDownClosed ;
78
79
return ;
79
80
}
80
81
unityProject . OpenProject ( ) ;
82
+
83
+ void DropDownClosed ( object ? sender , EventArgs e )
84
+ {
85
+ _unityVersionComboBox . DropDownClosed -= DropDownClosed ;
86
+ OpenProject ( ) ;
87
+ }
81
88
}
82
89
90
+
83
91
public override string ToString ( ) => unityProject ? . name ?? string . Empty ;
84
92
85
93
public void Update ( UnityProject unityProject )
You can’t perform that action at this time.
0 commit comments