mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 19:52:17 -04:00
Remove redundant focus tracking code.
This commit is contained in:
parent
6e0aa79d44
commit
9fd93b0af6
2 changed files with 1 additions and 16 deletions
|
@ -170,16 +170,6 @@ AISRecentEntriesView::AISRecentEntriesView(
|
|||
flags.focusable = true;
|
||||
}
|
||||
|
||||
void AISRecentEntriesView::on_focus() {
|
||||
has_focus = true;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void AISRecentEntriesView::on_blur() {
|
||||
has_focus = false;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
bool AISRecentEntriesView::on_encoder(const EncoderEvent event) {
|
||||
advance(event);
|
||||
return true;
|
||||
|
@ -236,7 +226,7 @@ void AISRecentEntriesView::paint(Painter& painter) {
|
|||
for(auto p = start; p != end; p++) {
|
||||
const auto& entry = *p;
|
||||
const auto is_selected_key = (selected_key == entry.mmsi);
|
||||
ais_list_item_draw(entry, target_rect, painter, s, (has_focus && is_selected_key));
|
||||
ais_list_item_draw(entry, target_rect, painter, s, (has_focus() && is_selected_key));
|
||||
target_rect.pos.y += target_rect.height();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue