Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarianZ committed Sep 29, 2024
1 parent e189e3b commit 45ce023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Editor/Scripts/AssetHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ public static AssetHandle CreateFromUrl(string url, string title, out string err

public static AssetHandle CreateFromMenuPath(string menuPath, string title, out string error)
{
AssetHandle urlHandle = new AssetHandle
AssetHandle menuItemHandle = new AssetHandle
{
_category = AssetCategory.MenuItem,
_guid = menuPath,
_fallbackName = title ?? string.Empty,
};

error = null;
return urlHandle;
return menuItemHandle;
}

public static void ForceSaveLocalCache()
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/AssetQuickAccessLocalCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public bool AddUrls(IEnumerable<(string url, string title)> urlInfos, ref String
return added;
}

public bool AddMenuItems(IEnumerable<(string url, string title)> menuItemInfos, ref StringBuilder errorsBuilder, bool clearErrorsBuilder)
public bool AddMenuItems(IEnumerable<(string menuPath, string title)> menuItemInfos, ref StringBuilder errorsBuilder, bool clearErrorsBuilder)
{
if (clearErrorsBuilder)
{
Expand Down

0 comments on commit 45ce023

Please sign in to comment.