Skip to content

Commit

Permalink
dbt format
Browse files Browse the repository at this point in the history
  • Loading branch information
stellar-aria committed Nov 8, 2023
1 parent ea08987 commit 22ae1a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/deluge/gui/menu_item/submenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ void Submenu::selectEncoderAction(int32_t offset) {
int32_t sign = (offset > 0) ? 1 : ((offset < 0) ? -1 : 0);
auto thisSubmenuItem = current_item_;

int32_t moved = 0;
for (; moved < std::abs(offset); moved++) {
for (size_t i = 0; i < std::abs(offset); ++i) {
do {
if (offset >= 0) {
thisSubmenuItem++;
Expand Down Expand Up @@ -98,8 +97,6 @@ void Submenu::selectEncoderAction(int32_t offset) {
}
} while (!(*thisSubmenuItem)->isRelevant(soundEditor.currentSound, soundEditor.currentSourceIndex));



current_item_ = thisSubmenuItem;

if (display->haveOLED()) {
Expand Down

0 comments on commit 22ae1a5

Please sign in to comment.