diff --git a/resources/ui/carla_host.ui b/resources/ui/carla_host.ui index 640a5c3db..97a8f1202 100644 --- a/resources/ui/carla_host.ui +++ b/resources/ui/carla_host.ui @@ -67,16 +67,7 @@ 0 - - 0 - - - 0 - - - 0 - - + 0 @@ -188,6 +179,21 @@ Logs + + 1 + + + 0 + + + 0 + + + 0 + + + 1 + @@ -233,6 +239,15 @@ QLayout::SetDefaultConstraint + + 10 + + + 12 + + + 10 + @@ -256,8 +271,8 @@ - 24 - 24 + 16 + 16 @@ -271,6 +286,19 @@ + + + + Qt::Vertical + + + + 20 + 5 + + + + @@ -282,8 +310,8 @@ - 24 - 24 + 16 + 16 @@ -291,6 +319,19 @@ + + + + Qt::Vertical + + + + 20 + 5 + + + + @@ -422,7 +463,7 @@ 0 0 1045 - 42 + 25 @@ -964,7 +1005,7 @@ 0 - + false diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index ed6ee66ea..124725cef 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -2208,9 +2208,9 @@ class HostWindow(QMainWindow): # -------------------------------------------------------------------------------------------------------- # Logs autoscroll, save and clear - @pyqtSlot(Qt.CheckState) - def slot_toggleLogAutoscroll(self, checked): - self.autoscrollOnNewLog = bool(checked) + @pyqtSlot(int) + def slot_toggleLogAutoscroll(self, checkState): + self.autoscrollOnNewLog = checkState == Qt.Checked if self.autoscrollOnNewLog: self.ui.text_logs.verticalScrollBar().setValue(self.ui.text_logs.verticalScrollBar().maximum()) @@ -2228,8 +2228,8 @@ class HostWindow(QMainWindow): @pyqtSlot() def slot_logSave(self): - filename, _ = QFileDialog.getSaveFileName(self, self.tr("Save Logs"),os.path.join( - self.fSavedSettings[CARLA_KEY_MAIN_PROJECT_FOLDER], 'carla_log.txt')) + filename = os.path.join(self.fSavedSettings[CARLA_KEY_MAIN_PROJECT_FOLDER], 'carla_log.txt') + filename, _ = QFileDialog.getSaveFileName(self, self.tr("Save Logs"), filename) if not filename: return