Fixed cpu sensor check when changing from manual sensor to Auto

pull/135/head
aristocratos 2020-09-26 19:08:22 +02:00
parent c4fa23e890
commit f1f6f3a475
1 changed files with 2 additions and 1 deletions

View File

@ -4128,8 +4128,9 @@ class Menu:
elif key == "right":
cpu_sensor_i += 1
if cpu_sensor_i > len(CONFIG.cpu_sensors) - 1: cpu_sensor_i = 0
Collector.collect_idle.wait()
CONFIG.cpu_sensor = CONFIG.cpu_sensors[cpu_sensor_i]
if CONFIG.check_temp and CpuCollector.sensor_method != "psutil":
if CONFIG.check_temp and (CpuCollector.sensor_method != "psutil" or CONFIG.cpu_sensor == "Auto"):
CpuCollector.get_sensors()
elif key in ["left", "right"] and selected == "view_mode":
if key == "left":