Bỏ qua đến nội dung

Free resources for correct update behaviour (for developers only)

Chờ xử lý #anki #addon #free #resources #for #correct #update
Unknown
23/3/2020

Cách tải addon Free resources for correct update behaviour (for developers only)

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1873344186

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1873344186 và copy

Mô tả chi tiết

This addon is an example for developers, whose addons lock files in the addon folder (e.g. an sqlite database). These files need to be removed before the addon is deleted / updated. Especially updating caused some tricky-to-fix bugs, but In the end it turned out to be super simple: Allow access to the db from multiple threads (I wasn’t aware that this was possible) and release it, whenever an addon is deleted.

The addon contains my previous solution attempt, maybe it’s helpful for others in the future.

If you want to experiment with this addon, install it and then lower its mod number (in meta.json). This causes Anki to update.

I added an explanation to __init__py.