Skip to content

Commit

Permalink
Fix bug where package urls were swapped for update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
LudiKha committed Oct 21, 2020
1 parent 7311542 commit cd40f06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Editor/GrapheneEditorUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ public class PackageRequest
static void CheckForUpdates()
{
var owner = new PackageRequest();
EditorCoroutineUtility.StartCoroutine(MonitorPackageUpdate(owner, gitUrlComponents, "Graphene Core"), owner);
EditorCoroutineUtility.StartCoroutine(MonitorPackageUpdate(owner, gitUrlCore, "Graphene Core"), owner);
}
[MenuItem("Window/Graphene/Check for updates/Graphene Components")]
static void CheckForUpdatesComponents()
{
var owner = new PackageRequest();
EditorCoroutineUtility.StartCoroutine(MonitorPackageUpdate(owner, gitUrlCore, "Graphene Components"), owner);
EditorCoroutineUtility.StartCoroutine(MonitorPackageUpdate(owner, gitUrlComponents, "Graphene Components"), owner);
}

static IEnumerator MonitorPackageUpdate(PackageRequest owner, string gitUrl, string packageName)
{
Debug.Log($"Checking for updates for {packageName}...");
Expand Down

0 comments on commit cd40f06

Please sign in to comment.