Details window now remembers its size

This commit is contained in:
Rinaldus 2017-10-10 13:47:26 +03:00
parent f4b5be7933
commit 6b73eb58bc
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
1 changed files with 6 additions and 0 deletions

View File

@ -269,9 +269,15 @@ class Details(QDialog):
self.ui.setupUi(self)
self.setWindowFlags(QtCore.Qt.Window)
self.ui.btnRefresh.clicked.connect(self.Refresh_clicked)
if (settings.contains("Details_width") and settings.contains("Details_height")):
width = int(settings.value("Details_width"))
height = int(settings.value("Details_height"))
self.resize(width,height)
def closeEvent(self, event):
event.ignore()
settings.setValue("Details_width",self.width())
settings.setValue("Details_height",self.height())
self.hide()
def Refresh_clicked(self):