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

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

Lines changed: 1 addition & 0 deletions
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

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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy