File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ public static async Task<string[]> ChangedFiles()
78
78
79
79
}
80
80
81
- public static void CheckoutBranch ( string branch )
81
+ public static async Task CheckoutBranch ( string branch )
82
82
{
83
83
84
- GenerateProcess ( GitPath , $ "checkout { branch } ") ;
84
+ await GenerateProcess ( GitPath , $ "checkout { branch } ") ;
85
85
86
86
}
87
87
Original file line number Diff line number Diff line change 2
2
3
3
#if UNITY_EDITOR
4
4
using System ;
5
+ using System . Threading . Tasks ;
5
6
using UnityEditor ;
6
7
using UnityEngine ;
7
8
@@ -53,7 +54,12 @@ private void OnGUI()
53
54
else
54
55
{
55
56
56
- Git . CheckoutBranch ( GitStatus . branches [ selectedBranch ] ) ;
57
+ Task . Run ( async ( ) =>
58
+ {
59
+
60
+ await Git . CheckoutBranch ( GitStatus . branches [ selectedBranch ] ) ;
61
+
62
+ } ) ;
57
63
58
64
}
59
65
You can’t perform that action at this time.
0 commit comments