mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Resize the window when adding new files
This commit is contained in:
parent
fd089f8803
commit
5328a6f7f6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user