This one too :)

This commit is contained in:
Willy-JL
2024-03-28 21:54:34 +00:00
parent 9f20389fc6
commit 0c3c6271cf

View File

@@ -32,11 +32,7 @@ void findmy_scene_config_show_mac(VariableItem* item) {
FindMy* app = variable_item_get_context(item);
uint8_t index = variable_item_get_current_value_index(item);
findmy_toggle_show_mac(app, index);
if(app->state.show_mac == true) {
variable_item_set_current_value_text(item, "Yes");
} else {
variable_item_set_current_value_text(item, "No");
}
variable_item_set_current_value_text(item, app->state.show_mac ? "Yes" : "No");
variable_item_set_current_value_index(item, app->state.show_mac);
}