lcd4l.cpp: restart script after changing timezone

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5cbd946de4
Author: GetAway <get-away@t-online.de>
Date: 2022-11-15 (Tue, 15 Nov 2022)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2022-11-15 22:43:21 +01:00
committed by vanhofen
parent ea7b8fa240
commit 8a6431c6af
3 changed files with 20 additions and 6 deletions

View File

@@ -200,6 +200,18 @@ void CLCD4l::StopLCD4l()
OnError();
}
void CLCD4l::RestartLCD4lScript()
{
OnBeforeStart();
if (thrLCD4l && g_settings.lcd4l_support)
{
if (exec_initscript("lcd4linux", "restart"))
OnAfterRestart();
else
OnError();
}
}
void CLCD4l::SwitchLCD4l()
{
if (thrLCD4l)
@@ -942,11 +954,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (!firstRun)
{
OnBeforeRestart();
if (exec_initscript("lcd4linux", "restart"))
OnAfterRestart();
else
OnError();
RestartLCD4lScript();
}
}
}