Skip to content

Commit

Permalink
Reset wc list index on language change
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoGiordano committed Mar 26, 2019
1 parent 59db4a1 commit 4eefc77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3ds/source/gui/screen/InjectSelectorScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ InjectSelectorScreen::InjectSelectorScreen() : hid(10, 2), dumpHid(40, 8)
// Filter
for (int i = 0; i < 9; i++)
{
langFilters.push_back(new ToggleButton(268, 3 + i * 24, 38, 23, [this, i](){ return this->toggleFilter(std::string(langs[i])); }, ui_sheet_emulated_button_selected_blue_idx, std::string(langs[i]), FONT_SIZE_14, COLOR_WHITE, ui_sheet_emulated_button_unselected_blue_idx, std::nullopt, std::nullopt, COLOR_BLACK, &langFilters, true));
langFilters.push_back(new ToggleButton(268, 3 + i * 24, 38, 23, [this, i](){ hid.select(0); return this->toggleFilter(std::string(langs[i])); }, ui_sheet_emulated_button_selected_blue_idx, std::string(langs[i]), FONT_SIZE_14, COLOR_WHITE, ui_sheet_emulated_button_unselected_blue_idx, std::nullopt, std::nullopt, COLOR_BLACK, &langFilters, true));
langFilters.back()->setState(false);
}
}
Expand Down

0 comments on commit 4eefc77

Please sign in to comment.