Remove unused 'as' clause

This commit is contained in:
atse 2023-07-05 13:00:56 +08:00
parent 3544f1ebdf
commit 142fe1043c
1 changed files with 2 additions and 2 deletions

View File

@ -109,10 +109,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
logging.debug(fan_settings)
if fan_settings is None:
return
with QSignalBlocker(self.fan_power_slider) as _:
with QSignalBlocker(self.fan_power_slider):
self.fan_power_slider.setValue(fan_settings["fan_pwm"])
self.fan_power_slider.setEnabled(not fan_settings["auto_mode"])
with QSignalBlocker(self.fan_auto_box) as _:
with QSignalBlocker(self.fan_auto_box):
self.fan_auto_box.setChecked(fan_settings["auto_mode"])
@asyncSlot()