Start with a narrower width

This commit is contained in:
Micah Lee 2018-02-06 18:35:35 -08:00
parent 8f77603182
commit a1aa25c792
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -56,7 +56,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.setWindowTitle('OnionShare') self.setWindowTitle('OnionShare')
self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png'))) self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
self.setMinimumWidth(500) self.setMinimumWidth(350)
# Load settings # Load settings
self.config = config self.config = config
@ -170,7 +170,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
def update_primary_action(self): def update_primary_action(self):
# Resize window # Resize window
self.resize(self.sizeHint()) self.adjustSize()
# Show or hide primary action layout # Show or hide primary action layout
if self.file_selection.file_list.count() > 0: if self.file_selection.file_list.count() > 0: