Skip to content

Commit

Permalink
Removed unnecessary line
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz committed Jan 6, 2024
1 parent 4ef89fc commit 86e0d52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UI/Panels/OutputConfigPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ private void Init()
dataGridViewConfig.SelectionChanged += (s, e) => {
if (testToolStripMenuItem.Checked)
{
// this disables the currently tested item
UpdateSingleItemTestMode();
}

testToolStripMenuItem.Enabled = dataGridViewConfig.SelectedRows.Count > 0 && !dataGridViewConfig.SelectedRows[0].IsNewRow;
if (testToolStripMenuItem.Enabled) return;
var AtLeastOneRowSelectedAndNotLastRow = dataGridViewConfig.SelectedRows.Count > 0 && !dataGridViewConfig.SelectedRows[0].IsNewRow;
testToolStripMenuItem.Enabled = AtLeastOneRowSelectedAndNotLastRow;
};
}

Expand Down

0 comments on commit 86e0d52

Please sign in to comment.