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

Commit 4aa25e7

Browse files
Merge pull request #1021 from github-for-unity/refresh-after-discard
Refresh after discard
2 parents b3fe6eb + 00e7c4f commit 4aa25e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

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

246246
Repository.DiscardChanges(discardEntries)
247+
.ThenInUI(AssetDatabase.Refresh)
247248
.Start();
248249
});
249250

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)