-
Notifications
You must be signed in to change notification settings - Fork 445
Fix to correctly update LFS lock status #304
Conversation
@@ -22,6 +22,8 @@ class ProjectWindowInterface : AssetPostprocessor | |||
|
|||
public static void Initialize(IRepository repo) | |||
{ | |||
Logger.Trace("Initialize HasRespository:{0}", repo != null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/HasRespository/HasRepository
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
} | ||
|
||
private static void RunStatusUpdateOnMainThread(GitStatus update) | ||
{ | ||
EntryPoint.ApplicationManager.TaskManager.ScheduleUI(new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnStatusUpdate(update))); | ||
new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnStatusUpdate(update)) | ||
.ScheduleUI(EntryPoint.ApplicationManager.TaskManager); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IF you're changing this to a new ActionTask
, then it should be new ActionTask(...) { Affinity = TaskAffinity.UI }.Start()
, otherwise there's no point in making this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I update this section as well
Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
Lines 151 to 155 in 9c52781
private static void RunLocksUpdateOnMainThread(IEnumerable<GitLock> update) | |
{ | |
new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnLocksUpdate(update)) | |
.ScheduleUI(EntryPoint.ApplicationManager.TaskManager); | |
} |
Fixes #303
Depends on:
Making sure favorites is not null #295
ListLocks task was not correctly strung together
There was a missing refresh for the project window