Opening an add-on’s built-in ConfigEditor causes the AddonsDialog to flicker briefly.
[Steps to reproduce]
- Open AddonsDialog
- Open some addon config using built-in ConfigEditor. (Instead of a custom UI)
- AddonsDialog flickers as the config editor appears.
Reproduced: v25.07, current main (d13c117)
Unreproduced: v25.02.7
[Analysis]
After you close the config editor (without closing addons dialog) and open the editor again, the dialog doesn’t flicker.
This bug seems to be related to AnkiWebView of ConfigEditor.help. If you remove the following line from ConfigEditor’s Ui_Dialog, this bug is not reproduced.
self.help.setProperty("url", QtCore.QUrl("about:blank"))
[Additional Info]
This issue caused an issue in my Anki add-ons where its ‘Advanced Config Editor’ would not show up.
My add-ons shows a custom config dialog, which has an ‘Advanced’ button that displays the built-in json ConfigEditor. When ConfigEditor is shown, it causes parent dialog with attribute Qt.WidgetAttribute.WA_DeleteOnClose to destroy itself. (I’m guessing this is related to the ‘flickering’)
Things work fine if I remove WA_DeleteOnClose (albeit with a flicker). So to clarify, this isn’t a major issue.
[Debug Info]
Anki 25.07.5 (7172b2d2)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.5-arm64-arm-64bit-Mach-O