From 2f4d21a0f766a4f78bfa9f977b4d8059eb156460 Mon Sep 17 00:00:00 2001 From: SciLor Date: Mon, 14 Oct 2024 08:04:10 +0000 Subject: [PATCH] add frontend.confirm_audioplayer_close --- include/settings.h | 1 + src/settings.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/settings.h b/include/settings.h index 59ec5849..18a8d5fe 100644 --- a/include/settings.h +++ b/include/settings.h @@ -101,6 +101,7 @@ typedef struct { bool split_model_content; bool ignore_web_version_mismatch; + bool confirm_audioplayer_close; } settings_frontend_t; typedef struct diff --git a/src/settings.c b/src/settings.c index f72f8a5c..b51956bf 100644 --- a/src/settings.c +++ b/src/settings.c @@ -245,6 +245,7 @@ static void option_map_init(uint8_t settingsId) OPTION_TREE_DESC("frontend", "Frontend", LEVEL_BASIC) OPTION_BOOL("frontend.split_model_content", &settings->frontend.split_model_content, TRUE, "Split content / model", "If enabled, the content of the TAF will be shown beside the model of the figurine", LEVEL_DETAIL) OPTION_BOOL("frontend.ignore_web_version_mismatch", &settings->frontend.ignore_web_version_mismatch, FALSE, "Ignore web version mismatch", "Ignore web version mismatch and don't show the mismatch warning", LEVEL_EXPERT) + OPTION_BOOL("frontend.confirm_audioplayer_close", &settings->frontend.confirm_audioplayer_close, TRUE, "Confirm audioplayer close", "Confirm dialog when closing the audioplayer during active playback", LEVEL_BASIC) OPTION_TREE_DESC("toniebox", "Toniebox", LEVEL_BASIC) OPTION_BOOL("toniebox.api_access", &settings->toniebox.api_access, TRUE, "API access", "Grant access to the API (default value for new boxes)", LEVEL_EXPERT)