GUI: widen ambient-temp spinbox range and persist it client-side

doubleSpinBox_ambient now allows -999..999 in whole degrees (was
0..50 with 1 decimal), and main_window.py is regenerated to match.

The ambient temperature is also now a properly client-owned setting:
it's written to the user config on shutdown (not on every spinbox
tick), restored into the spinbox immediately on GUI start, resent to
the server on every (re)connect using the spinbox's live value, and
no longer reset to the spinbox minimum on disconnect.
This commit is contained in:
2026-06-23 19:11:02 +02:00
parent 8726b0a62d
commit deb370257d
3 changed files with 31 additions and 17 deletions
+4 -4
View File
@@ -1239,10 +1239,10 @@ class Ui_MainWindow(object):
self.label_ambient.setObjectName("label_ambient")
self.doubleSpinBox_ambient = QtWidgets.QDoubleSpinBox(self.centralwidget)
self.doubleSpinBox_ambient.setGeometry(QtCore.QRect(620, 500, 70, 31))
self.doubleSpinBox_ambient.setDecimals(1)
self.doubleSpinBox_ambient.setMinimum(0.0)
self.doubleSpinBox_ambient.setMaximum(50.0)
self.doubleSpinBox_ambient.setSingleStep(0.5)
self.doubleSpinBox_ambient.setDecimals(0)
self.doubleSpinBox_ambient.setMinimum(-999.0)
self.doubleSpinBox_ambient.setMaximum(999.0)
self.doubleSpinBox_ambient.setSingleStep(1.0)
self.doubleSpinBox_ambient.setObjectName("doubleSpinBox_ambient")
self.btn_pot_reset = QtWidgets.QPushButton(self.centralwidget)
self.btn_pot_reset.setGeometry(QtCore.QRect(700, 500, 220, 31))