Details window now remembers its size
This commit is contained in:
parent
f4b5be7933
commit
6b73eb58bc
|
@ -269,9 +269,15 @@ class Details(QDialog):
|
||||||
self.ui.setupUi(self)
|
self.ui.setupUi(self)
|
||||||
self.setWindowFlags(QtCore.Qt.Window)
|
self.setWindowFlags(QtCore.Qt.Window)
|
||||||
self.ui.btnRefresh.clicked.connect(self.Refresh_clicked)
|
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):
|
def closeEvent(self, event):
|
||||||
event.ignore()
|
event.ignore()
|
||||||
|
settings.setValue("Details_width",self.width())
|
||||||
|
settings.setValue("Details_height",self.height())
|
||||||
self.hide()
|
self.hide()
|
||||||
|
|
||||||
def Refresh_clicked(self):
|
def Refresh_clicked(self):
|
||||||
|
|
Loading…
Reference in New Issue