@@ -468,8 +468,14 @@ api:
|
||||
visible: bool
|
||||
then:
|
||||
- lambda: |-
|
||||
if (!id(is_uploading_tft)) {
|
||||
// Do something
|
||||
if (!id(is_uploading_tft) and !(id.empty())) {
|
||||
if (!(icon.empty())) disp1->set_component_text_printf("%s_icon", id.c_str(), icon.c_str());
|
||||
if (icon_color.size() == 3) set_component_color->execute((id + "_icon").c_str(), icon_color);
|
||||
if (visible) {
|
||||
disp1->show_component(id.c_str());
|
||||
} else {
|
||||
disp1->hide_component(id.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
# Init Global Service
|
||||
|
||||
Reference in New Issue
Block a user