diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index 51480afa1..151a0cc73 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -238,7 +238,7 @@ int CMsgBox::exec() ccw_footer->getSelectedButtonObject()->setButtonAlias(mb_show_button); int selected = ccw_footer->getSelectedButton(); if (timeout == NO_TIMEOUT) - timeout = 0; + timeout = MSGBOX_DEFAULT_TIMEOUT; uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(timeout); diff --git a/src/gui/widget/msgbox.h b/src/gui/widget/msgbox.h index 47abd9a54..5c81dfb33 100644 --- a/src/gui/widget/msgbox.h +++ b/src/gui/widget/msgbox.h @@ -38,6 +38,7 @@ #define MSGBOX_MIN_WIDTH HINTBOX_MIN_WIDTH #define MSGBOX_MIN_HEIGHT HINTBOX_MIN_HEIGHT + 75 +#define MSGBOX_DEFAULT_TIMEOUT g_settings.timing[SNeutrinoSettings::TIMING_STATIC_MESSAGES] #define DEFAULT_MSGBOX_TEXT_MODE (CMsgBox::CENTER | CMsgBox::AUTO_WIDTH | CMsgBox::AUTO_HIGH) //! Sub class of CHintBox. Shows a window as a messagebox diff --git a/src/system/locals.h b/src/system/locals.h index 5621aa1e5..d638c71c3 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -2434,6 +2434,7 @@ typedef enum LOCALE_TIMING_MENU, LOCALE_TIMING_NUMERICZAP, LOCALE_TIMING_POPUP_MESSAGES, + LOCALE_TIMING_STATIC_MESSAGES, LOCALE_TIMING_VOLUMEBAR, LOCALE_TMDB_API_KEY, LOCALE_TMDB_ENABLED, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 875066c28..ef44b6316 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -2434,6 +2434,7 @@ const char * locale_real_names[] = "timing.menu", "timing.numericzap", "timing.popup_messages", + "timing.static_messages", "timing.volumebar", "tmdb.api_key", "tmdb.enabled", diff --git a/src/system/settings.h b/src/system/settings.h index fbb47ee6e..488bf97a2 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -406,6 +406,7 @@ struct SNeutrinoSettings TIMING_FILEBROWSER = 7, TIMING_NUMERICZAP = 8, TIMING_POPUP_MESSAGES = 9, + TIMING_STATIC_MESSAGES = 10, TIMING_SETTING_COUNT }; @@ -875,7 +876,8 @@ const time_settings_struct_t timing_setting[SNeutrinoSettings::TIMING_SETTING_CO { 3, LOCALE_TIMING_VOLUMEBAR }, { 60, LOCALE_TIMING_FILEBROWSER }, { 3, LOCALE_TIMING_NUMERICZAP }, - { 6, LOCALE_TIMING_POPUP_MESSAGES} + { 6, LOCALE_TIMING_POPUP_MESSAGES}, + { 0, LOCALE_TIMING_STATIC_MESSAGES} }; // lcdd