GUI: stop pre-dialing the Pot reset spinbox to ambient temperature
doubleSpinBox_pot_temp no longer seeds itself from the remembered ambient value at startup - it now starts at its plain default and only changes once the user actually dials in a value, rather than silently implying "ambient" is the reset target.
This commit is contained in:
@@ -375,13 +375,6 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
self.doubleSpinBox_ambient.setValue(remembered_ambient)
|
||||
self.doubleSpinBox_ambient.blockSignals(False)
|
||||
self.doubleSpinBox_ambient.valueChanged.connect(self.on_ambient_entry_changed)
|
||||
# Pre-dial the Pot reset target at the same starting point btn_pot_
|
||||
# reset used to hardcode (ambient) - purely a one-off starting value
|
||||
# for the user to optionally dial away from before clicking the
|
||||
# button, so unlike the ambient spinbox it's never persisted/synced
|
||||
# again afterwards.
|
||||
if remembered_ambient is not None:
|
||||
self.doubleSpinBox_pot_temp.setValue(remembered_ambient)
|
||||
self.btn_pot_reset.clicked.connect(self.on_action_pot_reset)
|
||||
# Only meaningful (and only shown) once the server confirms its Pot
|
||||
# is simulated - see on_system_changed()'s "PlantSim" handling.
|
||||
|
||||
Reference in New Issue
Block a user