Skip to content

Commit 3308778

Browse files
committed
feat(editor): Added installed badge to version history
Fixes: #232
1 parent e387f8c commit 3308778

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MLAPI-Editor/MLAPIEditor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ private void OnGUI()
305305
{
306306
if (releases[i] == null)
307307
continue;
308-
foldoutStatus[i] = EditorGUILayout.Foldout(foldoutStatus[i], releases[i].tag_name + " - " + releases[i].name);
308+
309+
foldoutStatus[i] = EditorGUILayout.Foldout(foldoutStatus[i], releases[i].tag_name + ((releases[i].tag_name == currentVersion) ? " - [Installed]" : ""));
310+
309311
if (foldoutStatus[i])
310312
{
311313
EditorGUI.indentLevel++;

0 commit comments

Comments
 (0)