Fixed crash during theme change

pull/135/head
aristocratos 2020-09-21 19:43:39 +02:00
parent 85adc7f285
commit da5dfe85e4
1 changed files with 1 additions and 0 deletions

View File

@ -4104,6 +4104,7 @@ class Menu:
elif key == "right": elif key == "right":
color_i += 1 color_i += 1
if color_i > len(Theme.themes) - 1: color_i = 0 if color_i > len(Theme.themes) - 1: color_i = 0
Collector.collect_idle.wait()
CONFIG.color_theme = list(Theme.themes)[color_i] CONFIG.color_theme = list(Theme.themes)[color_i]
THEME(CONFIG.color_theme) THEME(CONFIG.color_theme)
Term.refresh(force=True) Term.refresh(force=True)