Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0ea6d54

Browse files
Checking for checked files
1 parent 2a65f7b commit 0ea6d54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesView.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ private void OnCommitDetailsAreaGUI()
237237
GUILayout.Space(Styles.CommitAreaPadding);
238238

239239
// Disable committing when already committing or if we don't have all the data needed
240-
//EditorGUI.BeginDisabledGroup(isBusy || string.IsNullOrEmpty(commitMessage) || !tree.CommitTargets.Any(t => t.Any));
241-
EditorGUI.BeginDisabledGroup(isBusy || string.IsNullOrEmpty(commitMessage));
240+
EditorGUI.BeginDisabledGroup(isBusy || string.IsNullOrEmpty(commitMessage) || !treeChanges.GetCheckedFiles().Any());
242241
{
243242
GUILayout.BeginHorizontal();
244243
{

0 commit comments

Comments
 (0)