mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 15:41:52 +00:00
drop double copy
This commit is contained in:
@@ -294,7 +294,7 @@ void LvSelectable::set_selected_text(const std::string &text, lv_anim_enable_t a
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LvSelectable::set_options(std::initializer_list<std::string> options) {
|
void LvSelectable::set_options(const std::initializer_list<std::string> &options) {
|
||||||
auto index = this->get_selected_index();
|
auto index = this->get_selected_index();
|
||||||
if (index >= options.size())
|
if (index >= options.size())
|
||||||
index = options.size() - 1;
|
index = options.size() - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user