Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobcx committed Dec 31, 2024
1 parent 221e695 commit 0f01b6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void OnChangeBranch(object sender, SelectionChangedEventArgs e)
{
if (!(sender is ComboBox branchesCombo) || branchesCombo.SelectedItem == null || branchesCombo.SelectedIndex == -1)
{
cxToolbar.EnableScanButtonByCombos();
cxToolbar.CheckScanButtonStateByCombos();
return;
}

Expand All @@ -122,7 +122,7 @@ public void OnChangeBranch(object sender, SelectionChangedEventArgs e)

_ = scansCombobox.LoadScansAsync(projectId, selectedBranch);

cxToolbar.EnableScanButtonByCombos();
cxToolbar.CheckScanButtonStateByCombos();
}
protected override void ResetOthersComboBoxesAndResults()
{
Expand Down
6 changes: 3 additions & 3 deletions ast-visual-studio-extension/CxExtension/Toolbar/CxToolbar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void Init()
control.IsChecked = readOnlyStore.GetBoolean(SettingsUtils.groupByCollection, groupBy.ToString(), SettingsUtils.groupByDefaultValues[groupBy]);
}

EnableScanButtonByCombos();
CheckScanButtonStateByCombos();

_ = IdeScansEnabledAsync();

Expand Down Expand Up @@ -311,7 +311,7 @@ private static async Task<bool> ASTProjectMatchesWorkspaceProjectAsync(EnvDTE.DT
return false;
}

public void EnableScanButtonByCombos()
public void CheckScanButtonStateByCombos()
{
var isProject = ProjectsCombo?.SelectedItem != null && ProjectsCombo.SelectedIndex != -1;
var isBranch = BranchesCombo?.SelectedItem != null && BranchesCombo.SelectedIndex != -1;
Expand Down Expand Up @@ -410,7 +410,7 @@ private async Task PollScanStartedAsync()
var scanId = SettingsUtils.GetToolbarValue(Package, SettingsUtils.createdScanIdProperty);
if (string.IsNullOrWhiteSpace(scanId))
{
EnableScanButtonByCombos();
CheckScanButtonStateByCombos();
return;
};
var options = default(TaskHandlerOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void OnChangeProject(object sender, SelectionChangedEventArgs e)
ComboBox projectsCombo = cxToolbar.ProjectsCombo;
if (projectsCombo == null || projectsCombo.SelectedItem == null || projectsCombo.SelectedIndex == -1)
{
cxToolbar.EnableScanButtonByCombos();
cxToolbar.CheckScanButtonStateByCombos();
return;
}

Expand All @@ -172,7 +172,7 @@ public void OnChangeProject(object sender, SelectionChangedEventArgs e)

_ = branchesCombobox.LoadBranchesAsync(selectedProject);

cxToolbar.EnableScanButtonByCombos();
cxToolbar.CheckScanButtonStateByCombos();
}

protected override void ResetOthersComboBoxesAndResults()
Expand Down

0 comments on commit 0f01b6f

Please sign in to comment.