Tastudio - branches - disable toolbar buttons and menu items that need specifically 1 branch selected when multiple branches are selected

This commit is contained in:
adelikat 2020-09-27 10:23:51 -05:00
parent a5884622c8
commit cc66ba81c9
1 changed files with 4 additions and 3 deletions

View File

@ -228,12 +228,13 @@ namespace BizHawk.Client.EmuHawk
private void BranchesContextMenu_Opening(object sender, CancelEventArgs e)
{
RemoveBranchContextMenuItem.Enabled = SelectedBranch != null;
UpdateBranchContextMenuItem.Enabled =
RemoveBranchContextMenuItem.Enabled =
LoadBranchContextMenuItem.Enabled =
EditBranchTextContextMenuItem.Enabled =
JumpToBranchContextMenuItem.Enabled =
SelectedBranch != null;
BranchView.SelectedRows.Count() == 1;
}
private void AddBranchToolStripMenuItem_Click(object sender, EventArgs e)
@ -516,7 +517,7 @@ namespace BizHawk.Client.EmuHawk
UpdateBranchButton.Enabled =
LoadBranchButton.Enabled =
JumpToBranchButton.Enabled =
SelectedBranch != null;
BranchView.SelectedRows.Count() == 1;
}
private void Select(int index, bool value)