mirror of
https://github.com/Helldez/BigMoeOnEdge.git
synced 2026-10-03 19:45:46 +00:00
AddModelSection owned the download control loop: it polled every in-flight transfer on a 700 ms timer, finalized .part -> .gguf itself, tracked a second map of ids alongside the progress map, and re-seeded both by hand after every enqueue and cancel. ModelDownloader.events() now exposes that as a Flow over WorkManager's own, emitting the in-flight set plus a Completed/Failed outcome per download, and finalizing a landed file before it reports it. The composable collects and renders; the reseed calls and the id map are gone. Work already terminal when collection starts is finalized but reported silently, so a relaunch does not replay the last run's downloads as fresh completions. query() and activeDownloads() had no callers left and are removed. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle | ||