From aacae78420314bd9133e0a160c5decd1198136b3 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 2 Jul 2024 18:04:09 +0300 Subject: [PATCH] nyx: partition manager error message improvement Inform user that there's an issue with bootloader folder when a partial backup is done during partitioning. --- nyx/nyx_gui/frontend/gui_tools_partition_manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c index 2f8a05c..114035c 100644 --- a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c +++ b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c @@ -1508,7 +1508,11 @@ static lv_res_t _create_mbox_start_partitioning(lv_obj_t *btn) // Do full or hekate/Nyx backup. if (_backup_and_restore_files(true, lbl_paths)) { - lv_label_set_text(lbl_status, "#FFDD00 Error:# Failed to back up files!"); + if (part_info.backup_possible) + lv_label_set_text(lbl_status, "#FFDD00 Error:# Failed to back up files!"); + else + lv_label_set_text(lbl_status, "#FFDD00 Error:# Failed to back up files!\nBootloader folder exceeds 1GB or corrupt!"); + goto error; }