mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
About: Fix missing Prev. button from Device Info
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
- OFW: Infrared: Increase max carrier limit to 1000000 (by @skotopes)
|
||||
|
||||
### Fixed:
|
||||
- Nothing
|
||||
- About: Fix missing Prev. button when invoked from Device Info keybind (by @Willy-JL)
|
||||
|
||||
### Removed:
|
||||
- Nothing
|
||||
|
||||
@@ -217,7 +217,7 @@ const AboutDialogScreen about_screens[] = {
|
||||
};
|
||||
|
||||
int32_t about_settings_app(void* p) {
|
||||
UNUSED(p);
|
||||
bool about_battery = p && !strncmp(p, "about_battery", strlen("about_battery"));
|
||||
DialogsApp* dialogs = furi_record_open(RECORD_DIALOGS);
|
||||
DialogMessage* message = dialog_message_alloc();
|
||||
|
||||
@@ -236,7 +236,7 @@ int32_t about_settings_app(void* p) {
|
||||
while(1) {
|
||||
if(screen_index >= COUNT_OF(about_screens) - 1) {
|
||||
dialog_message_set_buttons(message, "Prev.", NULL, NULL);
|
||||
} else if(screen_index == 0) {
|
||||
} else if(screen_index == 0 && !about_battery) {
|
||||
dialog_message_set_buttons(message, NULL, NULL, "Next");
|
||||
} else {
|
||||
dialog_message_set_buttons(message, "Prev.", NULL, "Next");
|
||||
|
||||
Reference in New Issue
Block a user