fix card info dialog size not being remembered
This commit is contained in:
parent
8421399020
commit
6669f1ba10
@ -1095,7 +1095,11 @@ by clicking on one on the left."""))
|
|||||||
return
|
return
|
||||||
info, cs = self._cardInfoData()
|
info, cs = self._cardInfoData()
|
||||||
reps = self._revlogData(cs)
|
reps = self._revlogData(cs)
|
||||||
d = QDialog(self)
|
class CardInfoDialog(QDialog):
|
||||||
|
def reject(self):
|
||||||
|
saveGeom(self, "revlog")
|
||||||
|
return QDialog.reject(self)
|
||||||
|
d = CardInfoDialog(self)
|
||||||
l = QVBoxLayout()
|
l = QVBoxLayout()
|
||||||
l.setContentsMargins(0,0,0,0)
|
l.setContentsMargins(0,0,0,0)
|
||||||
w = AnkiWebView()
|
w = AnkiWebView()
|
||||||
@ -1109,7 +1113,6 @@ by clicking on one on the left."""))
|
|||||||
d.resize(500, 400)
|
d.resize(500, 400)
|
||||||
restoreGeom(d, "revlog")
|
restoreGeom(d, "revlog")
|
||||||
d.show()
|
d.show()
|
||||||
saveGeom(d, "revlog")
|
|
||||||
|
|
||||||
def _cardInfoData(self):
|
def _cardInfoData(self):
|
||||||
from anki.stats import CardStats
|
from anki.stats import CardStats
|
||||||
|
Loading…
Reference in New Issue
Block a user