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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user