Skip to content

Commit

Permalink
fix: fixed wrong visible and selected check method
Browse files Browse the repository at this point in the history
Signed-off-by: SimoneFiorani <[email protected]>
  • Loading branch information
sfiorani committed Dec 27, 2024
1 parent 88e0e14 commit 147880f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,17 @@ private PartialSnapshotCheckboxStatus checkPidsCheckboxStates() {
boolean areAllVisible = true;
boolean areAllSelected = true;

Iterator<Widget> pidPanelIterator = this.pidPanel.iterator();
while (pidPanelIterator.hasNext()) {
Widget widget = pidPanelIterator.next();
for (Widget widget : pidPanel) {
if (!widget.isVisible()) {
areAllVisible = false;
break;
}
}

for (Widget widget : pidPanel) {
if (widget.isVisible() && !((CheckBox) widget).getValue().booleanValue()) {
areAllSelected = false;
break;
}
}

Expand Down

0 comments on commit 147880f

Please sign in to comment.