From 562caf3c54be75c4d155a36d1fb7f0e5b2625ad3 Mon Sep 17 00:00:00 2001 From: Toni Macaroni Date: Tue, 14 Apr 2020 20:08:12 +0200 Subject: [PATCH] cleanup --- TrickSaber/TrickSaber.csproj | 2 +- TrickSaber/{UI => }/TrickSaberPlugin.cs | 2 +- TrickSaber/UI/TrickSaberFlowCoordinator.cs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) rename TrickSaber/{UI => }/TrickSaberPlugin.cs (97%) diff --git a/TrickSaber/TrickSaber.csproj b/TrickSaber/TrickSaber.csproj index 27add20..18707db 100644 --- a/TrickSaber/TrickSaber.csproj +++ b/TrickSaber/TrickSaber.csproj @@ -151,7 +151,7 @@ - + diff --git a/TrickSaber/UI/TrickSaberPlugin.cs b/TrickSaber/TrickSaberPlugin.cs similarity index 97% rename from TrickSaber/UI/TrickSaberPlugin.cs rename to TrickSaber/TrickSaberPlugin.cs index 4edd1a5..c671e90 100644 --- a/TrickSaber/UI/TrickSaberPlugin.cs +++ b/TrickSaber/TrickSaberPlugin.cs @@ -42,7 +42,7 @@ public IEnumerator CheckVersion() JSONNode releases = JSON.Parse(www.downloadHandler.text); JSONNode latestRelease = releases[0]; JSONNode jsonnode = latestRelease["tag_name"]; - string githubVerStr = (jsonnode != null) ? jsonnode.Value.Replace("-L", "") : null; + string githubVerStr = (jsonnode != null) ? jsonnode.Value : null; Version githubVer = new Version(githubVerStr); IsNewestVersion = !new Range($">{Plugin.Version}").IsSatisfied(githubVer); } diff --git a/TrickSaber/UI/TrickSaberFlowCoordinator.cs b/TrickSaber/UI/TrickSaberFlowCoordinator.cs index a647c52..c52291a 100644 --- a/TrickSaber/UI/TrickSaberFlowCoordinator.cs +++ b/TrickSaber/UI/TrickSaberFlowCoordinator.cs @@ -28,8 +28,7 @@ protected override void DidActivate(bool firstActivation, ActivationType activat { title = "Trick Settings"; showBackButton = true; - ProvideInitialViewControllers(bindingsViewController, miscViewController, thresholdViewController, - null, null); + ProvideInitialViewControllers(bindingsViewController, miscViewController, thresholdViewController); } } catch (Exception e)