Update BuildGeneratorEditorWindow.cs

This commit is contained in:
Syntriax 2025-01-12 23:44:34 +03:00
parent 07b34535fb
commit b52769443e

View File

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