Give settings button a fixed width to avoid it getting squished in macOS

This commit is contained in:
Micah Lee 2018-02-24 12:34:46 -08:00
parent 817a5746f9
commit 928de64171
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -141,6 +141,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.settings_button = QtWidgets.QPushButton()
self.settings_button.setDefault(False)
self.settings_button.setFlat(True)
self.settings_button.setFixedWidth(40)
self.settings_button.setIcon( QtGui.QIcon(common.get_resource_path('images/settings.png')) )
self.settings_button.clicked.connect(self.open_settings)