From 6a132a4991ba24756da3f7a457e63602c9e5614b Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 5 Dec 2021 15:14:21 -0800 Subject: [PATCH] Remove stretch from TorConnectionWidget so it takes the full width --- desktop/src/onionshare/tor_connection.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/desktop/src/onionshare/tor_connection.py b/desktop/src/onionshare/tor_connection.py index 81cc37c9..1f07242d 100644 --- a/desktop/src/onionshare/tor_connection.py +++ b/desktop/src/onionshare/tor_connection.py @@ -70,14 +70,10 @@ class TorConnectionWidget(QtWidgets.QWidget): progress_layout.addWidget(self.progress) progress_layout.addWidget(self.cancel_button) - inner_layout = QtWidgets.QVBoxLayout() - inner_layout.addWidget(self.label) - inner_layout.addLayout(progress_layout) + layout = QtWidgets.QVBoxLayout() + layout.addWidget(self.label) + layout.addLayout(progress_layout) - layout = QtWidgets.QHBoxLayout() - layout.addStretch() - layout.addLayout(inner_layout) - layout.addStretch() self.setLayout(layout) # Start displaying the status at 0