fix tab append on initial application startup

This commit is contained in:
yggverse 2024-10-12 01:08:16 +03:00
parent 7c9ab300d3
commit ef227f276d
5 changed files with 22 additions and 6 deletions

View file

@ -119,6 +119,7 @@ impl App {
// Restore previous session from DB
match Database::records(&transaction) {
Ok(records) => {
// Restore child components
for record in records {
if let Err(e) =
browser.restore(&transaction, &record.id)
@ -126,6 +127,9 @@ impl App {
todo!("{e}")
}
}
// Run initial features
browser.init();
}
Err(e) => todo!("{e}"),
}