diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index d80d04ac8..596d1d6f8 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -403,7 +403,9 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{ result.append(fld["sticky"]) - update_notetype_legacy(parent=self.mw, notetype=model).run_in_background() + update_notetype_legacy(parent=self.mw, notetype=model).run_in_background( + initiator=self + ) return result @@ -416,7 +418,9 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{ new_state = not fld["sticky"] fld["sticky"] = new_state - update_notetype_legacy(parent=self.mw, notetype=model).run_in_background() + update_notetype_legacy(parent=self.mw, notetype=model).run_in_background( + initiator=self + ) return new_state