Addon Manager: Cleanup warnings

This commit is contained in:
Chris Hennes
2024-02-09 12:27:03 -05:00
parent 9aef453acc
commit 956307ffa0
2 changed files with 2 additions and 3 deletions

View File

@@ -92,11 +92,11 @@ class WidgetFilterSelector(QtWidgets.QComboBox):
super().__init__(parent)
self.addon_type_index = 0
self.installation_status_index = 0
self.extra_padding = 64
self._setup_ui()
self._setup_connections()
self.retranslateUi(None)
self.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
self.extra_padding = 64
def _setup_ui(self):
self._build_menu()

View File

@@ -72,7 +72,7 @@ class WidgetProgressBar(QtWidgets.QWidget):
def _setup_ui(self):
self.vertical_layout = QtWidgets.QVBoxLayout(self)
self.horizontal_layout = QtWidgets.QHBoxLayout(self)
self.horizontal_layout = QtWidgets.QHBoxLayout()
self.progress_bar = QtWidgets.QProgressBar(self)
self.status_label = QtWidgets.QLabel(self)
self.stop_button = QtWidgets.QToolButton(self)
@@ -87,7 +87,6 @@ class WidgetProgressBar(QtWidgets.QWidget):
self.horizontal_layout.addWidget(self.stop_button)
self.vertical_layout.setContentsMargins(0, 0, 0, 0)
self.horizontal_layout.setContentsMargins(0, 0, 0, 0)
self.setLayout(self.vertical_layout)
def set_status(self, status: str):
self.status_label.setText(status)