remember add-ons window geometry

This commit is contained in:
Damien Elmes 2019-02-20 14:38:22 +10:00
parent a0b9b6c0f3
commit ae67c97610

View file

@ -304,8 +304,13 @@ class AddonsDialog(QDialog):
f.config.clicked.connect(self.onConfig)
self.form.addonList.currentRowChanged.connect(self._onAddonItemSelected)
self.redrawAddons()
restoreGeom(self, "addons")
self.show()
def reject(self):
saveGeom(self, "addons")
return QDialog.reject(self)
def redrawAddons(self):
self.addons = [(self.annotatedName(d), d) for d in self.mgr.allAddons()]
self.addons.sort()