Skip to content

Commit

Permalink
When the idle timer fires display the standby screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Mar 6, 2012
1 parent d8f180f commit 7433393
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -2601,18 +2601,17 @@ void MythMainWindow::IdleTimeout(void)
LOG(VB_GENERAL, LOG_NOTICE, QString("Entering standby mode after "
"%1 minutes of inactivity")
.arg(idletimeout));
EnterStandby(false);

// HACK Prevent faked keypresses interrupting the transition to standby
PauseIdleTimer(true);
// HACK end

JumpTo("Main Menu");
JumpTo("Standby Mode");

// HACK
PauseIdleTimer(false);
// HACK end

EnterStandby(false);
}
}

Expand All @@ -2637,6 +2636,8 @@ void MythMainWindow::ExitStandby(bool manual)
{
if (manual)
PauseIdleTimer(false);
else
JumpTo("Main Menu");

if (!d->standby)
return;
Expand Down

0 comments on commit 7433393

Please sign in to comment.