- adzap: start adzap directly when ok is pressed on marked item

This commit is contained in:
svenhoefer
2016-03-10 09:51:34 +01:00
parent 6a6a3c3543
commit 817e6dc67e

View File

@@ -245,8 +245,9 @@ int CAdZapMenu::exec(CMenuTarget *parent, const std::string & actionKey)
Init();
int res = menu_return::RETURN_EXIT_ALL;
bool marked_ok = (actionKey.length() == 1 && g_settings.adzap_zapBackPeriod == (actionKey[0] - '0') * 60);
if (actionKey == "enable")
if (actionKey == "enable" || marked_ok)
{
if (!monitor)
armed = true;