anki_straight_reward icon indicating copy to clipboard operation
anki_straight_reward copied to clipboard

Use Anki hooks rather than wrap

Open hgiesel opened this issue 5 years ago • 2 comments

This can only be accomplished once there is a anki hook, where we can inspect the incoming revlog entries.

The closest thing right now is hooks.sync_stage_did_change.append().

hgiesel avatar Mar 17 '20 17:03 hgiesel

See discussion here: https://anki.tenderapp.com/discussions/add-ons/42645-getting-collection-during-new-style-sync-hook

bmulholland avatar Mar 17 '20 17:03 bmulholland

As of today, the only wrap that remains is around AnkiQt._sync in the sync_hook.

hgiesel avatar May 23 '20 21:05 hgiesel