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

Commit d873e68

Browse files
Refactoring task calls
1 parent 2802119 commit d873e68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ private static void Refresh()
151151
private static void RunLocksUpdateOnMainThread(IEnumerable<GitLock> update)
152152
{
153153
new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnLocksUpdate(update))
154-
.ScheduleUI(EntryPoint.ApplicationManager.TaskManager);
154+
{
155+
Affinity = TaskAffinity.UI
156+
}.Start();
155157
}
156158

157159
private static void OnLocksUpdate(IEnumerable<GitLock> update)
@@ -178,7 +180,9 @@ private static void OnLocksUpdate(IEnumerable<GitLock> update)
178180
private static void RunStatusUpdateOnMainThread(GitStatus update)
179181
{
180182
new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnStatusUpdate(update))
181-
.ScheduleUI(EntryPoint.ApplicationManager.TaskManager);
183+
{
184+
Affinity = TaskAffinity.UI
185+
}.Start();
182186
}
183187

184188
private static void OnStatusUpdate(GitStatus update)

0 commit comments

Comments
 (0)