mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
Messages: try to fix API message handling
Passed timeout for messeages an popup's fired by yWeb API was not really ok. For popups now we have a setting with default value of 6 seconds timeout Popups fired with ShowHint() use this as default. Value of 0 and -1 are ignored. Messages fired with ShowMsg() should be fixed and interpret value 0 or -1 as no timeout and will remain on the screen.
This commit is contained in:
@@ -2433,6 +2433,7 @@ typedef enum
|
||||
LOCALE_TIMING_INFOBAR_RADIO,
|
||||
LOCALE_TIMING_MENU,
|
||||
LOCALE_TIMING_NUMERICZAP,
|
||||
LOCALE_TIMING_POPUP_MESSAGES,
|
||||
LOCALE_TIMING_VOLUMEBAR,
|
||||
LOCALE_TMDB_API_KEY,
|
||||
LOCALE_TMDB_ENABLED,
|
||||
|
@@ -2433,6 +2433,7 @@ const char * locale_real_names[] =
|
||||
"timing.infobar_radio",
|
||||
"timing.menu",
|
||||
"timing.numericzap",
|
||||
"timing.popup_messages",
|
||||
"timing.volumebar",
|
||||
"tmdb.api_key",
|
||||
"tmdb.enabled",
|
||||
|
@@ -405,6 +405,7 @@ struct SNeutrinoSettings
|
||||
TIMING_VOLUMEBAR = 6,
|
||||
TIMING_FILEBROWSER = 7,
|
||||
TIMING_NUMERICZAP = 8,
|
||||
TIMING_POPUP_MESSAGES = 9,
|
||||
|
||||
TIMING_SETTING_COUNT
|
||||
};
|
||||
@@ -873,7 +874,8 @@ const time_settings_struct_t timing_setting[SNeutrinoSettings::TIMING_SETTING_CO
|
||||
{ 6, LOCALE_TIMING_INFOBAR_MOVIEPLAYER},
|
||||
{ 3, LOCALE_TIMING_VOLUMEBAR },
|
||||
{ 60, LOCALE_TIMING_FILEBROWSER },
|
||||
{ 3, LOCALE_TIMING_NUMERICZAP }
|
||||
{ 3, LOCALE_TIMING_NUMERICZAP },
|
||||
{ 6, LOCALE_TIMING_POPUP_MESSAGES}
|
||||
};
|
||||
|
||||
// lcdd
|
||||
|
Reference in New Issue
Block a user