Skip to content

Commit

Permalink
add frontend.confirm_audioplayer_close
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 14, 2024
1 parent c539560 commit 2f4d21a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ typedef struct
{
bool split_model_content;
bool ignore_web_version_mismatch;
bool confirm_audioplayer_close;
} settings_frontend_t;

typedef struct
Expand Down
1 change: 1 addition & 0 deletions src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f4d21a

Please sign in to comment.