Anki/rslib/src/sync/media
Damien Elmes bfef908c6c
Refactor media sync handling (#2647)
* Refactor media sync handling

- The media USN is now returned in sync/meta, which avoids an extra
round-trip.
- Media syncing is now automatically started by the syncing code at
the end of a normal or full sync, which avoids it competing for bandwidth
and resources, and avoids duplicate invalid login messages when the auth
token is invalid.
- Added a new media_sync_progress() method to both check if media is
syncing, and get access to the latest progress.
- Updated the sync log screen to only show the latest line, like AnkiMobile.
- Show media sync errors in a pop-up, so they don't get missed. Use a non-modal
pop-up to avoid potential conflicts with other modals.

* Remove print statement
2023-09-10 13:22:20 +10:00
..
database Update nightly formatter 2023-09-02 16:13:50 +10:00
begin.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
changes.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
download.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
mod.rs Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
progress.rs Refactor progress handling (#2549) 2023-06-19 13:48:32 +10:00
protocol.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
sanity.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
syncer.rs Refactor media sync handling (#2647) 2023-09-10 13:22:20 +10:00
tests.rs Refactor media sync handling (#2647) 2023-09-10 13:22:20 +10:00
upload.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
zip.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00