config: remove printers from theme list fixes #1363

This commit is contained in:
alfrix 2024-05-09 15:28:32 -03:00
parent 03a99ded92
commit c9c6eb2258

View File

@ -337,7 +337,11 @@ class KlipperScreenConfig:
break
t_path = os.path.join(klipperscreendir, 'styles')
themes = [d for d in os.listdir(t_path) if (not os.path.isfile(os.path.join(t_path, d)) and d != "z-bolt")]
themes = [
d for d in os.listdir(t_path)
if (not os.path.isfile(os.path.join(t_path, d))
and d not in ("z-bolt", "printers"))
]
themes.sort()
for theme in themes: