Replace single data model with data management struct and views

This commit is contained in:
Reinout Meliesie 2025-02-04 23:46:51 +01:00
commit 7610b291a4
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
6 changed files with 88 additions and 96 deletions

View file

@ -1,4 +1,3 @@
mod collection ;
mod error ;
mod persistence ;
mod ui ;
@ -44,8 +43,9 @@ fn show_window ( app : & Application ) {
spawn_future_local ( async move {
async_unit_result_context (
async {
let collection = get_collection_from_file () . await ? ;
ui . render_collection (collection) ;
let collection = Collection :: new () . await ? ;
let collection_overview = collection . get_overview () . await ;
ui . render_collection_overview (collection_overview) ;
Ok (())
} ,
|error| {