uncrumple settings window

to full size right away with no need to manually enlarge it
900 wide, less than 1024x78
This commit is contained in:
bug Lady 2019-11-15 18:01:01 +01:00 committed by dimyme
parent 35a2962552
commit bdab3713bc

View File

@ -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"""