mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remember add-ons window geometry
This commit is contained in:
parent
a0b9b6c0f3
commit
ae67c97610
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue