mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
mw.debug_diag is the dialog and not the window
This will allow, for example, for add-ons to do self.debugDiag.text and access the debugger text. I see very little reason to have a direct access to the dialog window. I should note that self.debugDiag is never used anywhere in the code, so I think it should be deleted; unless you've heard of some add-on using it.
This commit is contained in:
parent
1661cad801
commit
e86817305a
1 changed files with 1 additions and 1 deletions
|
@ -1369,7 +1369,7 @@ will be lost. Continue?"""
|
|||
def onDebug(self):
|
||||
d = self.debugDiag = QDialog()
|
||||
d.silentlyClose = True
|
||||
frm = aqt.forms.debug.Ui_Dialog()
|
||||
frm = self.debug_diag_form = aqt.forms.debug.Ui_Dialog()
|
||||
frm.setupUi(d)
|
||||
font = QFontDatabase.systemFont(QFontDatabase.FixedFont)
|
||||
font.setPointSize(frm.text.font().pointSize() + 1)
|
||||
|
|
Loading…
Reference in a new issue