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

Commit 00e7c4f

Browse files
Calling AssetDatabase.Refresh in the status changer handler
1 parent 3eb1b5e commit 00e7c4f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesView.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ private GenericMenu CreateContextMenu(ChangesTreeNode node)
244244
}
245245

246246
Repository.DiscardChanges(discardEntries)
247-
.ThenInUI(() => {
248-
AssetDatabase.Refresh();
249-
})
247+
.ThenInUI(AssetDatabase.Refresh)
250248
.Start();
251249
});
252250

Diff for: src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ private static void OnStatusUpdate()
291291
guids.Add(guid);
292292
}
293293

294-
EditorApplication.RepaintProjectWindow();
294+
AssetDatabase.Refresh();
295295
}
296296

297297
private static void OnProjectWindowItemGUI(string guid, Rect itemRect)

0 commit comments

Comments
 (0)