GUI: changed from force to update valuye fopr high_res_enter when the spreadsheet is updated. Force_update_value for checkedlineedit always updates external but doesnt force cahnge to editor unless the box is unchecked

This commit is contained in:
appleb_m
2025-12-10 16:03:55 +01:00
parent f8fbfe9642
commit fdd6b192ce
2 changed files with 5 additions and 4 deletions
@@ -177,7 +177,7 @@ class ScanSettingsPanel(QWidget):
# Handle target resolution (common to all panels)
if (target_res := getattr(self._params, 'targetresolution', None)) is not None:
self._high_res = target_res
self.high_res_enter.force_update_value(self._high_res)
self.high_res_enter.update_value(self._high_res)
self.set_high_res(self._high_res)
# Store metadata (common to all panels)
+4 -3
View File
@@ -183,9 +183,10 @@ class CheckedLineEdit(QWidget):
def force_update_value(self, value):
#wrapper for NumberLineEdit.force_update_value
#self._external_value = value
self.editor.force_update_value(value)
self._on_editor_value_changed(value)
self._external_value = value
if not self._checked:
self.editor.force_update_value(value)
self._on_editor_value_changed(value)
@property
def value(self) -> float: