fix: исправлены окна настроек
This commit is contained in:
parent
a66495af52
commit
fdec6e8f6e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -30,6 +30,7 @@ class MainWindow(BaseMainWindow):
|
||||
self.operSettings = OperatorSettings("params/operator_params.json", 'Operator', self._upd_settings)
|
||||
self.sysSettings = SystemSettings("params/system_params.json", 'System', self._upd_settings)
|
||||
self.repSettings = ReportSettings()
|
||||
self.statusBar().showMessage("Ready")
|
||||
|
||||
self._clear()
|
||||
self.resize(800,800)
|
||||
@ -120,6 +121,7 @@ class MainWindow(BaseMainWindow):
|
||||
view_settings = QtWidgets.QAction("View settings", self)
|
||||
view_settings.setIcon(QIcon('resources/view_ico.png'))
|
||||
view_settings.triggered.connect(lambda: self._toggle_visibility(self.report_dock))
|
||||
view_settings.triggered.connect(lambda: self._on_tab_changed(0))
|
||||
|
||||
|
||||
# Добавляем действия в меню "Режимы"
|
||||
|
||||
@ -158,7 +158,7 @@ class settingsWindow(QWidget):
|
||||
prev_columns = self._param_table.columnCount()
|
||||
desired_columns = num_points
|
||||
|
||||
if desired_columns <= prev_columns:
|
||||
if desired_columns <= 0:
|
||||
return
|
||||
|
||||
self._param_table.setColumnCount(desired_columns)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user