Browse Source

Details window now remembers its size

master
Rinaldus 5 years ago
parent
commit
6b73eb58bc
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
  1. 6
      mail-notifier.py

6
mail-notifier.py

@ -269,9 +269,15 @@ class Details(QDialog): @@ -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):

Loading…
Cancel
Save