Skip to content

Commit

Permalink
fix(core): remove useless debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-Masson committed Apr 6, 2024
1 parent 7cae2b4 commit e41d791
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/menu/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,11 @@ void Menu::_handleSelectLowerCheckBox()
break;
}
}
std::cout << "games size: " << this->_graphicsCheckBoxes.size() << std::endl;
for (auto checkBox : this->_gamesCheckBoxes) {
if (checkBox->isHovered()) {
checkBox->unhover();
auto index = std::distance(this->_gamesCheckBoxes.begin(), std::find(this->_gamesCheckBoxes.begin(), this->_gamesCheckBoxes.end(), checkBox));
if (index == this->_gamesCheckBoxes.size() - 1 && !this->_graphicsCheckBoxes.empty()) {
if (index == this->_gamesCheckBoxes.size() - 1) {
this->_graphicsCheckBoxes.at(0)->hover();
this->_checkBoxType = GRAPHICS_CHECKBOX;
} else {
Expand Down

0 comments on commit e41d791

Please sign in to comment.