The Lua state needs to be reset on a theme change to reload scripts
This commit is contained in:
@@ -276,6 +276,8 @@ void ThemeManager::SwitchThemeAndLanguage( const CString &sThemeName, const CStr
|
||||
|
||||
void ThemeManager::UpdateLuaGlobals()
|
||||
{
|
||||
LUA->ResetState();
|
||||
|
||||
/* Important: explicitly refresh cached metrics that we use. */
|
||||
THEME_SCREEN_WIDTH.Read();
|
||||
THEME_SCREEN_HEIGHT.Read();
|
||||
|
||||
Reference in New Issue
Block a user