mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed wrong json class names and added fix for backwards compatibility in ThemeManager #1538
This commit is contained in:
@@ -37,6 +37,12 @@ class ThemeManager:
|
||||
else:
|
||||
cls.theme[key] = cls.theme[key]["Linux"]
|
||||
|
||||
# fix name inconsistencies
|
||||
if "CTkCheckbox" in cls.theme.keys():
|
||||
cls.theme["CTkCheckBox"] = cls.theme.pop("CTkCheckbox")
|
||||
if "CTkRadiobutton" in cls.theme.keys():
|
||||
cls.theme["CTkRadioButton"] = cls.theme.pop("CTkRadiobutton")
|
||||
|
||||
@classmethod
|
||||
def save_theme(cls):
|
||||
if cls._currently_loaded_theme is not None:
|
||||
|
||||
Reference in New Issue
Block a user