diff --git a/grid-control/gridcontrol.py b/grid-control/gridcontrol.py index 33184bb..6f92270 100644 --- a/grid-control/gridcontrol.py +++ b/grid-control/gridcontrol.py @@ -225,8 +225,7 @@ def setup_ui_logic(self): self.thread.update_signal.connect(self.update_fan_speed) # Connect CPU and GPU temperature signals (from polling thread) to function for updating HWMon status - self.thread.cpu_temp_signal.connect(self.set_hwmon_status) - self.thread.gpu_temp_signal.connect(self.set_hwmon_status) + self.thread.hwmon_status_signal.connect(self.ui.labelHWMonStatus.setText) # Connect exception signal to show exception message from running thread # This is needed as it's not possible to show a message box widget from the QThread directly @@ -552,14 +551,6 @@ def restart(self): self.thread.update_sensors(self.get_cpu_sensor_ids(), self.get_gpu_sensor_ids()) self.init_communication() - def set_hwmon_status(self, temperature): - """Update OpenHardwareMonitor status based on current CPU and GPU temperatures.""" - - if temperature == 0: - self.ui.labelHWMonStatus.setText('Disconnected') - else: - self.ui.labelHWMonStatus.setText('Connected') - def thread_exception_handling(self, msg): """Display an error message with details about the exception and reset the "serial port value" to