From 4a996e9c6b56ddfa2051fd6b2f1e03722280bf0e Mon Sep 17 00:00:00 2001 From: icenine451 Date: Mon, 4 Mar 2024 09:07:39 -0500 Subject: [PATCH] Fix desktop mode warning dialog logging --- functions/dialogs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/dialogs.sh b/functions/dialogs.sh index 1441cc4f..c0789042 100644 --- a/functions/dialogs.sh +++ b/functions/dialogs.sh @@ -222,7 +222,6 @@ desktop_mode_warning() { --text="$message") rc=$? # Capture return code, as "Yes" button has no text value if [[ $rc == "1" ]]; then # If any button other than "Yes" was clicked - log i "Selected: \"Yes\"" if [[ $choice == "No" ]]; then log i "Selected: \"No\"" exit 1 @@ -230,6 +229,8 @@ desktop_mode_warning() { log i "Selected: \"Never show this again\"" set_setting_value $rd_conf "desktop_mode_warning" "false" retrodeck "options" # Store desktop mode warning variable for future checks fi + else + log i "Selected: \"Yes\"" fi fi }