mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 00:41:44 +01:00
parent
2eac8b6c46
commit
1c2d2bce5a
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ bool DisplayMenuComponent::cursor_down_() {
|
|||
bool DisplayMenuComponent::enter_menu_() {
|
||||
this->displayed_item_->on_leave();
|
||||
this->displayed_item_ = static_cast<MenuItemMenu *>(this->get_selected_item_());
|
||||
this->selection_stack_.push_front({this->top_index_, this->cursor_index_});
|
||||
this->selection_stack_.emplace_front(this->top_index_, this->cursor_index_);
|
||||
this->cursor_index_ = this->top_index_ = 0;
|
||||
this->displayed_item_->on_enter();
|
||||
|
||||
|
|
Loading…
Reference in a new issue