diff --git a/theme.py b/theme.py index 2f8830415..add510aa7 100644 --- a/theme.py +++ b/theme.py @@ -276,8 +276,7 @@ def setTheme(baseDir: str, name: str) -> bool: themes = getThemesList() for themeName in themes: if name == themeName.lower(): - themeFunctionName = 'setTheme' + themeName - themeFunctionName(baseDir) + globals()['setTheme' + themeName](baseDir) result = True if not result: