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:
Arthur Milchior 2020-04-26 02:19:13 +02:00
parent 1661cad801
commit e86817305a

View file

@ -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)