@@ -68,7 +68,7 @@ private GUIStyle TextStyle(int fontSize = 10, TextAnchor alignment = TextAnchor.
6868
6969 private void DrawVersion ( )
7070 {
71- GUI . Label ( new Rect ( 440 , 10 , 150 , 10 ) , "Current Version: " + Settings . VERSION , TextStyle ( alignment : TextAnchor . MiddleLeft ) ) ;
71+ GUI . Label ( new Rect ( 440 , 10 , 150 , 10 ) , "Current Version: " + Settings . VERSION , TextStyle ( alignment : TextAnchor . MiddleLeft ) ) ;
7272 if ( string . IsNullOrEmpty ( latestVersion ) )
7373 {
7474 GUI . Label ( new Rect ( 440 , 30 , 150 , 10 ) , "Checking for Updates..." , TextStyle ( alignment : TextAnchor . MiddleLeft ) ) ;
@@ -79,7 +79,7 @@ private void DrawVersion()
7979 }
8080 else
8181 {
82- GUI . Label ( new Rect ( 440 , 30 , 150 , 10 ) , "Latest Version: " + latestVersion , TextStyle ( alignment : TextAnchor . MiddleLeft ) ) ;
82+ GUI . Label ( new Rect ( 440 , 30 , 150 , 10 ) , "Latest Version: " + latestVersion , TextStyle ( alignment : TextAnchor . MiddleLeft ) ) ;
8383 if ( Settings . VERSION == latestVersion )
8484 {
8585 if ( GUI . Button ( new Rect ( 440 , 50 , 150 , 18 ) , "Check Update" ) )
@@ -183,7 +183,7 @@ private void VersionCheckUpdate()
183183 if ( req . isDone )
184184 {
185185 EditorApplication . update -= VersionCheckUpdate ;
186- latestVersion = req . url . Substring ( req . url . LastIndexOf ( "/" ) + 1 ) ;
186+ latestVersion = req . url . Substring ( req . url . LastIndexOf ( "/" ) + 1 ) . TrimStart ( 'v' ) ;
187187
188188 if ( Settings . VERSION != latestVersion )
189189 {
0 commit comments