added rest of the buttons (still needs listeners) & reformatted/improved other code

This commit is contained in:
2025-06-06 15:37:06 +02:00
parent 53a1fdee19
commit c0793562e3
19 changed files with 132 additions and 105 deletions
+3 -3
View File
@@ -103,13 +103,13 @@ fn generate_re_data() {
pub async fn update_re_data(data: &Data) {
send_cmd_json("update_data_file", None).await;
send_cmd_json("update_data_file", None, true).await;
read_re_data(data, false).await;
}
pub async fn write_re_data() {
send_cmd_json("update_data_file", None).await;
send_cmd_json("update_data_file", None, true).await;
}
@@ -127,7 +127,7 @@ pub async fn read_cfg_data(data: &Data, wipe: bool) {
let mut cfg_data = data.cfg.lock().await;
*cfg_data = json_data;
send_cmd_json("update_cfg", Some(json!([str_data]))).await;
send_cmd_json("update_cfg", Some(json!([str_data])), true).await;
}