diff --git a/BuildGeneratorEditorWindow.cs b/BuildGeneratorEditorWindow.cs index eed2917..05a7407 100644 --- a/BuildGeneratorEditorWindow.cs +++ b/BuildGeneratorEditorWindow.cs @@ -50,20 +50,22 @@ public class BuildGeneratorEditorWindow : EditorWindow EditorGUILayout.Space(); if (GUILayout.Button($"Push All")) { GitProcess.Push(); GitProcess.PushTags(); } - // EditorGUILayout.BeginHorizontal(); - // if (IncrementButton("Major", versionDefinition.IncreaseMajor())) - // CommitVersion(versionDefinition.IncreaseMajor()); + EditorGUILayout.Space(); + EditorGUILayout.LabelField("Force New Version"); + EditorGUILayout.BeginHorizontal(); + if (IncrementButton("Major", versionDefinition.IncreaseMajor())) + CommitVersion(versionDefinition.IncreaseMajor()); - // if (IncrementButton("Minor", versionDefinition.IncreaseMinor())) - // CommitVersion(versionDefinition.IncreaseMinor()); + if (IncrementButton("Minor", versionDefinition.IncreaseMinor())) + CommitVersion(versionDefinition.IncreaseMinor()); - // if (IncrementButton("Patch", versionDefinition.IncreasePatch())) - // CommitVersion(versionDefinition.IncreasePatch()); + if (IncrementButton("Patch", versionDefinition.IncreasePatch())) + CommitVersion(versionDefinition.IncreasePatch()); - // if (IncrementButton("Release Candidate", versionDefinition.IncreaseReleaseCandidate())) - // CommitVersion(versionDefinition.IncreaseReleaseCandidate()); + if (IncrementButton("Release Candidate", versionDefinition.IncreaseReleaseCandidate())) + CommitVersion(versionDefinition.IncreaseReleaseCandidate()); - // EditorGUILayout.EndHorizontal(); + EditorGUILayout.EndHorizontal(); } private void CommitVersion(VersionDefinition versionDefinition)