Skip to content

Commit

Permalink
fix: invisible symlink icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnSur committed Nov 2, 2023
1 parent 4d1bbde commit b25d965
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ private static void OnProjectWindowItemGUI(string guid, Rect r)
{
var path = AssetDatabase.GUIDToAssetPath(guid);

if (string.IsNullOrEmpty(path) || !File.Exists(path))

if (string.IsNullOrEmpty(path))
return;
var exists = File.Exists(path) || Directory.Exists(path);
if(!exists)
return;
var attributes = File.GetAttributes(path);
var nr = IMGUIUtility.CalculateRectAfterLabelText(r, path, true);
if ((attributes & FolderSymlinkAttributes) == FolderSymlinkAttributes)
{
GUI.Label(nr, SymlinkLabelText, SymlinkMarkerStyle);
}
}
catch (Exception e)
{
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.quickeye.utility/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.quickeye.utility",
"displayName": "QuickEye Utility",
"version": "4.0.0",
"version": "4.0.1",
"unity": "2020.3",
"author": "Quick Eye",
"type": "library",
Expand Down

0 comments on commit b25d965

Please sign in to comment.