style:delete the commented code
CI / lint (pull_request) Successful in 52s
CI / test (3.12) (pull_request) Successful in 1m4s
CI / test (3.13) (pull_request) Successful in 1m40s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m9s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m38s
CI / test-with-coverage (pull_request) Successful in 1m49s
CI / coverage-analysis (pull_request) Successful in 3s
CI / test (3.11) (pull_request) Successful in 57s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m5s
CI / lint (push) Successful in 40s
Docs build and publish / docker (push) Successful in 24s
CI / test (3.11) (push) Canceled after 49s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 41s
CI / test (3.12) (push) Canceled after 46s
CI / test (3.13) (push) Canceled after 44s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 39s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 36s
CI / test-with-coverage (push) Canceled after 34s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 36s
CI / lint (pull_request) Successful in 52s
CI / test (3.12) (pull_request) Successful in 1m4s
CI / test (3.13) (pull_request) Successful in 1m40s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m9s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m38s
CI / test-with-coverage (pull_request) Successful in 1m49s
CI / coverage-analysis (pull_request) Successful in 3s
CI / test (3.11) (pull_request) Successful in 57s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m5s
CI / lint (push) Successful in 40s
Docs build and publish / docker (push) Successful in 24s
CI / test (3.11) (push) Canceled after 49s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 41s
CI / test (3.12) (push) Canceled after 46s
CI / test (3.13) (push) Canceled after 44s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 39s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 36s
CI / test-with-coverage (push) Canceled after 34s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 36s
This commit was merged in pull request #168.
This commit is contained in:
1 parent
0a30723f6a
commit
873143d846
1 file changed
-7
@@ -107,11 +107,6 @@ class ScanSettingsPanel(QWidget):
|
||||
|
||||
self._register_override_field(self.transmission_enter)
|
||||
|
||||
# self.reload_params_button = QPushButton("Reload DB params")
|
||||
# self.reload_params_button.setToolTip("Reload data collection parameters from database")
|
||||
# self.reload_params_button.clicked.connect(self.reload_parameters)
|
||||
# self.reload_params_button.setVisible(False) # Child classes should make it visible
|
||||
|
||||
self._reset_to_defaults()
|
||||
|
||||
# -- source toggle -----------------------------------------------------
|
||||
@@ -192,7 +187,6 @@ class ScanSettingsPanel(QWidget):
|
||||
self._params = s.sample.aaredb_params if hasattr(s.sample, "aaredb_params") else None
|
||||
# Enable reload button only if sample has parameters
|
||||
self._previous_sample_was_none = False
|
||||
# self.reload_params_button.setEnabled(self._params is not None)
|
||||
|
||||
# Check if this is a new sample - if so, update parameters
|
||||
if self._last_sample_id != s.sample.db_id:
|
||||
@@ -206,7 +200,6 @@ class ScanSettingsPanel(QWidget):
|
||||
self._sample = None
|
||||
self._params = None
|
||||
self._last_sample_id = None
|
||||
# self.reload_params_button.setEnabled(False)
|
||||
|
||||
def _reset_to_defaults(self):
|
||||
# Forget user overrides and follow the database/defaults again.
|
||||
|
||||
Reference in new issue
Block a user