mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
l4l: reinitialize only once
This commit is contained in:
@@ -205,24 +205,24 @@ int CLCD4lSetup::show()
|
|||||||
delete lcd4lSetup;
|
delete lcd4lSetup;
|
||||||
|
|
||||||
// the things to do on exit
|
// the things to do on exit
|
||||||
|
bool need_init = false;
|
||||||
if (g_settings.lcd4l_dpf_type != temp_lcd4l_dpf_type)
|
if (g_settings.lcd4l_dpf_type != temp_lcd4l_dpf_type)
|
||||||
{
|
{
|
||||||
g_settings.lcd4l_dpf_type = temp_lcd4l_dpf_type;
|
g_settings.lcd4l_dpf_type = temp_lcd4l_dpf_type;
|
||||||
LCD4l->InitLCD4l();
|
need_init = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_settings.lcd4l_skin != temp_lcd4l_skin)
|
if (g_settings.lcd4l_skin != temp_lcd4l_skin)
|
||||||
{
|
{
|
||||||
g_settings.lcd4l_skin = temp_lcd4l_skin;
|
g_settings.lcd4l_skin = temp_lcd4l_skin;
|
||||||
LCD4l->InitLCD4l();
|
need_init = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_settings.lcd4l_brightness != temp_lcd4l_brightness)
|
if (g_settings.lcd4l_brightness != temp_lcd4l_brightness)
|
||||||
{
|
{
|
||||||
g_settings.lcd4l_brightness = temp_lcd4l_brightness;
|
g_settings.lcd4l_brightness = temp_lcd4l_brightness;
|
||||||
LCD4l->InitLCD4l();
|
need_init = true;
|
||||||
}
|
}
|
||||||
|
if (need_init)
|
||||||
|
LCD4l->InitLCD4l();
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user