From 5328a6f7f6004c7c1a9633ad88dbabbc0231f536 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 5 Feb 2018 09:33:31 -0800 Subject: [PATCH] Resize the window when adding new files --- onionshare_gui/onionshare_gui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index ffe9f3cf..b7fcdabc 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -56,6 +56,7 @@ class OnionShareGui(QtWidgets.QMainWindow): self.setWindowTitle('OnionShare') self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png'))) + self.setMinimumWidth(300) # Load settings self.config = config @@ -168,6 +169,10 @@ class OnionShareGui(QtWidgets.QMainWindow): self.check_for_updates() def update_primary_action(self): + # Resize window + self.resize(self.sizeHint()) + + # Show or hide primary action layout if self.file_selection.file_list.count() > 0: self.primary_action.show() else: