|
@@ -306,7 +306,8 @@ namespace Terra.Arbitrator.GUI
|
|
|
StartOperation($"Discarding changes and switching to {targetBranch}...");
|
|
|
GitService.ResetAndSwitchBranch(targetBranch)
|
|
|
.Then(successMsg => { InfoMessage = successMsg; Refresh(); })
|
|
|
- .Catch(ex => { HandleOperationError(ex); FinishOperation(); });
|
|
|
+ .Catch(ex => { HandleOperationError(ex); FinishOperation(); })
|
|
|
+ .Finally(() => { EditorApplication.delayCall += AssetDatabase.Refresh; });
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -318,7 +319,8 @@ namespace Terra.Arbitrator.GUI
|
|
|
StartOperation($"Switching to {targetBranch}...");
|
|
|
GitService.SwitchBranch(targetBranch)
|
|
|
.Then(successMsg => { InfoMessage = successMsg; Refresh(); })
|
|
|
- .Catch(ex => { HandleOperationError(ex); FinishOperation(); });
|
|
|
+ .Catch(ex => { HandleOperationError(ex); FinishOperation(); })
|
|
|
+ .Finally(() => { EditorApplication.delayCall += AssetDatabase.Refresh; });
|
|
|
}
|
|
|
}
|
|
|
|