Skip to content

Commit

Permalink
Refresh number value.
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Jul 17, 2024
1 parent 7ac1e7a commit f8a4262
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions radio/src/gui/colorlcd/source_numberedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ void SourceNumberEdit::switchSourceMode()
// TODO: convert value???
v.value = 0;
setValue(v.rawValue);
if (v.isSource)
source_field->update();
else
num_field->update();

// update field type based on value
update();
Expand All @@ -134,11 +130,13 @@ void SourceNumberEdit::update()
// Source mode
act_field = source_field;
source_field->show();
source_field->update();
lv_event_send(source_field->getLvObj(), LV_EVENT_VALUE_CHANGED, nullptr);
} else {
// number edit mode
act_field = num_field;
num_field->show();
num_field->update();
}

m_srcBtn->check(isSource());
Expand Down

0 comments on commit f8a4262

Please sign in to comment.