Replace single data model with data management struct and views
This commit is contained in:
parent
c14d2ab6f1
commit
7610b291a4
6 changed files with 88 additions and 96 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue