mirror of https://gitlab.com/bashrc2/epicyon
Calling theme function from variable
parent
4d4836fac0
commit
313a5131fd
3
theme.py
3
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:
|
||||
|
|
Loading…
Reference in New Issue