COsdSetup: ensure reset of channellist modules after any changed osd settings

Origin commit data
------------------
Commit: cf5d138508
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-01-03 (Wed, 03 Jan 2018)
This commit is contained in:
2018-01-03 22:35:01 +01:00
committed by vanhofen
parent 654f706e88
commit ff24546bb9

View File

@@ -307,8 +307,6 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
if (fs_x != g_settings.font_scaling_x || fs_y != g_settings.font_scaling_y) {
printf("[neutrino] new font scale settings x: %d%% y: %d%%\n", g_settings.font_scaling_x, g_settings.font_scaling_y);
CNeutrinoApp::getInstance()->SetupFonts(CNeutrinoFonts::FONTSETUP_NEUTRINO_FONT | CNeutrinoFonts::FONTSETUP_NEUTRINO_FONT_INST | CNeutrinoFonts::FONTSETUP_DYN_FONT);
if (CNeutrinoApp::getInstance()->channelList)
CNeutrinoApp::getInstance()->channelList->ResetModules(); //force re init of all modules
}
return res;
}
@@ -405,6 +403,10 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
res = showOsdSetup();
//ensure reset of channellist modules after any changed osd settings
if (CNeutrinoApp::getInstance()->channelList)
CNeutrinoApp::getInstance()->channelList->ResetModules();
//return menu_return::RETURN_REPAINT;
return res;
}