Skip to content

Commit 0004e9e

Browse files
committed
Fixed Version Check URL being incorrect
1 parent b7a06b5 commit 0004e9e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@
128128
</ul>
129129

130130
<h2>Updates</h2>
131+
<b>2024-10-13: v1.0.1</b>
132+
<p>
133+
<ul>
134+
<li>Fixed Version Check URL being incorrect</li>
135+
</ul>
136+
</p>
137+
131138
<b>2024-09-29: v1.0.0</b>
132139
<p>
133140
<ul>

Unity-Animation-Toggle-Generator/Assets/AnimationToggleGenerator/Editor/MintyToggleGenerator.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using VRC.SDK3.Avatars.ScriptableObjects;
1111

1212
public class MintyToggleGenerator : EditorWindow {
13-
private const string Version = "1.0.0";
13+
private const string Version = "1.0.1";
1414
private const string LogPrefix = "[<color=#9fffe3>MintyToggle Generator</color>] ";
1515
private static readonly string ProjectUserAgent = $"MintyToggleGenerator/{Version} Internal UnityWebRequest";
1616
private static bool _updateAvailable;
@@ -48,7 +48,7 @@ private static void CheckForUpdate() {
4848
Debug.Log(LogPrefix + "Checking for updates...");
4949
var wc = new WebClient();
5050
wc.Headers.Add("User-Agent", ProjectUserAgent);
51-
_newVersionString = wc.DownloadString("https://raw.githubusercontent.com/Minty-Labs/Unity-Tools/main/Animation-Toggle-Generator/Remote/version.txt");
51+
_newVersionString = wc.DownloadString("https://raw.githubusercontent.com/Minty-Labs/Unity-Tools/refs/heads/main/Unity-Animation-Toggle-Generator/Remote/version.txt");
5252
_updateAvailable = _newVersionString != Version;
5353
Debug.Log(LogPrefix + (_updateAvailable ? "Update Available" : "No Update Available"));
5454
wc.Dispose();
@@ -546,7 +546,7 @@ private void CreateAnimatorLayer(AnimationClip enabledClip, AnimationClip disabl
546546
// Allows you get the current folder that is opened in the project window
547547
private static string GetSelectedPathOrFallback() {
548548
var path = "Assets";
549-
549+
550550
foreach (var obj in Selection.GetFiltered(typeof(Object), SelectionMode.Assets)) {
551551
path = AssetDatabase.GetAssetPath(obj);
552552
if (string.IsNullOrEmpty(path) || !File.Exists(path)) continue;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

0 commit comments

Comments
 (0)