bedit: ensure apply of possible changed timeout settings on runtime

This commit is contained in:
2017-10-12 12:26:02 +02:00
parent 61a29f061a
commit b7124973de
5 changed files with 10 additions and 10 deletions

View File

@@ -211,7 +211,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
bouquetsChanged = false;
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
bool loop = true;
while (loop)
@@ -219,7 +219,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
if (msg <= CRCInput::RC_MaxRC)
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
if ((msg == CRCInput::RC_timeout) || (msg == (neutrino_msg_t)g_settings.key_channelList_cancel))
{
@@ -354,7 +354,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
paintFoot();
paintItems();
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
}
}
else if (state == beMoving)

View File

@@ -251,7 +251,7 @@ int CBEChannelWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
channelsChanged = false;
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
bool loop = true;
while (loop)
@@ -259,7 +259,7 @@ int CBEChannelWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
if (msg <= CRCInput::RC_MaxRC)
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
if ((msg == CRCInput::RC_timeout) || (msg == (neutrino_msg_t)g_settings.key_channelList_cancel))
{
@@ -296,7 +296,7 @@ int CBEChannelWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
if (state == beDefault)
addChannel();
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
}
else if (msg == CRCInput::RC_yellow)
{

View File

@@ -251,7 +251,7 @@ int CBEChannelSelectWidget::exec(CMenuTarget* parent, const std::string & /*acti
paintFoot();
paintItems();
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
channelChanged = false;
bool loop = true;
@@ -260,7 +260,7 @@ int CBEChannelSelectWidget::exec(CMenuTarget* parent, const std::string & /*acti
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
if (msg <= CRCInput::RC_MaxRC)
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
timeoutEnd = CRCInput::calcTimeoutEnd(*timeout_ptr);
if ((msg == CRCInput::RC_timeout) || (msg == (neutrino_msg_t)g_settings.key_channelList_cancel) || (msg == CRCInput::RC_home))
{

View File

@@ -53,7 +53,7 @@ CBEGlobals::CBEGlobals()
x = getScreenStartX(width);
y = getScreenStartY(height);
timeout = g_settings.timing[SNeutrinoSettings::TIMING_MENU];
timeout_ptr = &g_settings.timing[SNeutrinoSettings::TIMING_MENU];
dline = NULL;
ibox = NULL;

View File

@@ -54,7 +54,7 @@ class CBEGlobals
int status_icon_width;
unsigned int items_count;
int timeout;
int* timeout_ptr;
void paintBody();