From 83b92f6c8147054ac51cf46178c375ec2972bb76 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 6 Feb 2025 00:53:21 +0000 Subject: [PATCH] About: Fix missing Prev. button from Device Info --- CHANGELOG.md | 2 +- applications/settings/about/about.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bac229960..5963e3f0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/applications/settings/about/about.c b/applications/settings/about/about.c index 3052e63b8..3863f5aae 100644 --- a/applications/settings/about/about.c +++ b/applications/settings/about/about.c @@ -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");