mirror of
https://github.com/ankitects/anki.git
synced 2025-12-12 22:36:55 -05:00
Fix deck change after toggling sticky fields (#1415)
This commit is contained in:
parent
c64bac57a6
commit
ebe7125e81
1 changed files with 6 additions and 2 deletions
|
|
@ -403,7 +403,9 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{
|
||||||
|
|
||||||
result.append(fld["sticky"])
|
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
|
return result
|
||||||
|
|
||||||
|
|
@ -416,7 +418,9 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{
|
||||||
new_state = not fld["sticky"]
|
new_state = not fld["sticky"]
|
||||||
fld["sticky"] = new_state
|
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
|
return new_state
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue