recovery: Remember the last log position.
After reading one log entry, it should stay at the same menu position. Test: 'View recovery logs' -> Read -> Exit Change-Id: I4b579be4c2fe1e3a1dcc4873e128fd0b2d619ba3
This commit is contained in:
+2
-1
@@ -972,8 +972,9 @@ static void choose_recovery_file(Device* device) {
|
||||
|
||||
const char* headers[] = { "Select file to view", nullptr };
|
||||
|
||||
int chosen_item = 0;
|
||||
while (true) {
|
||||
int chosen_item = get_menu_selection(headers, entries, 1, 0, device);
|
||||
chosen_item = get_menu_selection(headers, entries, 1, chosen_item, device);
|
||||
if (strcmp(entries[chosen_item], "Back") == 0) break;
|
||||
|
||||
ui->ShowFile(entries[chosen_item]);
|
||||
|
||||
Reference in New Issue
Block a user