Ticket #12972: idle-timeout.diff

File idle-timeout.diff, 607 bytes (added by amb@…, 3 years ago)

Patch

  • mythtv/programs/mythfrontend/main.cpp

    diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp
    index 4e6573bdcb..993c80ce9a 100644
    a b int main(int argc, char **argv) 
    20272027        // We appear to have been started automatically
    20282028        // so enter standby so that the machine can
    20292029        // shutdown again as soon as possible if necessary.
    2030         standbyScreen();
     2030
     2031        if (gCoreContext->GetNumSetting("FrontendIdleTimeout",0) > 0)
     2032            standbyScreen();
    20312033    }
    20322034
    20332035    int ret = qApp->exec();