mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-28 21:37:50 +02:00
The enabled state of all modules is now preserved
This commit is contained in:
@ -106,6 +106,7 @@ bool Menu::draw(bool updateStates) {
|
||||
bool enabled = item.inst->isEnabled();
|
||||
if (ImGui::Checkbox(("##_menu_checkbox_" + opt.name).c_str(), &enabled)) {
|
||||
enabled ? item.inst->enable() : item.inst->disable();
|
||||
changed = true;
|
||||
}
|
||||
ImGui::SetCursorPos(pos);
|
||||
}
|
||||
@ -127,6 +128,7 @@ bool Menu::draw(bool updateStates) {
|
||||
bool enabled = item.inst->isEnabled();
|
||||
if (ImGui::Checkbox(("##_menu_checkbox_" + opt.name).c_str(), &enabled)) {
|
||||
enabled ? item.inst->enable() : item.inst->disable();
|
||||
changed = true;
|
||||
}
|
||||
ImGui::SetCursorPos(pos);
|
||||
|
||||
|
Reference in New Issue
Block a user