From bdab3713bcac64b6fbefca70adad9a3cbe68ee68 Mon Sep 17 00:00:00 2001 From: bug Lady Date: Fri, 15 Nov 2019 18:01:01 +0100 Subject: [PATCH] uncrumple settings window to full size right away with no need to manually enlarge it 900 wide, less than 1024x78 --- src/bitmessageqt/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/settings.py b/src/bitmessageqt/settings.py index 982328cc..6b621688 100644 --- a/src/bitmessageqt/settings.py +++ b/src/bitmessageqt/settings.py @@ -42,7 +42,10 @@ class SettingsDialog(QtGui.QDialog): self.tabWidgetSettings.setCurrentIndex( self.tabWidgetSettings.indexOf(self.tabNetworkSettings) ) - QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self)) + QtGui.QWidget.setMinimumSize(self, QtCore.QSize(900, 555)) + QtGui.QWidget.setMaximumSize(self, QtCore.QSize(900, 555)) + QtGui.QWidget.setBaseSize(self, QtCore.QSize(900, 555)) + QtGui.QWidget.resize(self, 900, 555) def adjust_from_config(self, config): """Adjust all widgets state according to config settings"""