From 99e273409382511400655b377a6d8bd819d6f989 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 13 Jan 2025 01:37:56 +0100 Subject: [PATCH] fix(xml): return if XMLs can't be saved (#7588) --- examples/others/xml/lv_example_xml_2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/others/xml/lv_example_xml_2.c b/examples/others/xml/lv_example_xml_2.c index d3e702010..61e36a8de 100644 --- a/examples/others/xml/lv_example_xml_2.c +++ b/examples/others/xml/lv_example_xml_2.c @@ -9,6 +9,7 @@ void lv_example_xml_2(void) lv_obj_t * label = lv_label_create(lv_screen_active()); lv_label_set_text(label, "Couldn't open the XML files."); lv_obj_center(label); + return; } lv_xml_component_register_from_file("A:lvgl/examples/others/xml/my_card.xml"); lv_xml_component_register_from_file("A:lvgl/examples/others/xml/my_button.xml");