mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 14:57:34 +01:00
parent
2eac8b6c46
commit
1c2d2bce5a
@ -280,7 +280,7 @@ bool DisplayMenuComponent::cursor_down_() {
|
|||||||
bool DisplayMenuComponent::enter_menu_() {
|
bool DisplayMenuComponent::enter_menu_() {
|
||||||
this->displayed_item_->on_leave();
|
this->displayed_item_->on_leave();
|
||||||
this->displayed_item_ = static_cast<MenuItemMenu *>(this->get_selected_item_());
|
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->cursor_index_ = this->top_index_ = 0;
|
||||||
this->displayed_item_->on_enter();
|
this->displayed_item_->on_enter();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user