mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
fix settings dialog being empty
This commit is contained in:
@@ -34,9 +34,8 @@ def settings_dialog(self):
|
|||||||
dialog.setWindowTitle("Settings")
|
dialog.setWindowTitle("Settings")
|
||||||
dialog.setFixedSize(700, 450)
|
dialog.setFixedSize(700, 450)
|
||||||
|
|
||||||
main_layout = QVBoxLayout()
|
dialog_layout = QVBoxLayout()
|
||||||
dialog.setLayout(QVBoxLayout())
|
dialog.setLayout(dialog_layout)
|
||||||
dialog.setLayout(main_layout)
|
|
||||||
|
|
||||||
if state.window_transparency and platform.system() != "Windows" and dialog:
|
if state.window_transparency and platform.system() != "Windows" and dialog:
|
||||||
dialog.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
dialog.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||||
@@ -287,7 +286,7 @@ def settings_dialog(self):
|
|||||||
self.tab2 = paths_tab("Paths", download_path_container, image_path_container, self.tabs)
|
self.tab2 = paths_tab("Paths", download_path_container, image_path_container, self.tabs)
|
||||||
self.tab3 = network_tab("Network", interface_container, max_connections_container, max_downloads_container, up_speed_limit_container, down_speed_limit_container, api_url_container, self.tabs)
|
self.tab3 = network_tab("Network", interface_container, max_connections_container, max_downloads_container, up_speed_limit_container, down_speed_limit_container, api_url_container, self.tabs)
|
||||||
|
|
||||||
main_layout.addWidget(self.tabs)
|
dialog_layout.addWidget(self.tabs)
|
||||||
main_layout.addLayout(layout)
|
dialog_layout.addLayout(layout)
|
||||||
|
|
||||||
dialog.exec()
|
dialog.exec()
|
||||||
|
|||||||
Reference in New Issue
Block a user