fix tabs order on session restore

This commit is contained in:
yggverse 2025-01-31 12:53:40 +02:00
parent e7c55e1b19
commit 8b67f70573
2 changed files with 10 additions and 5 deletions

View file

@ -331,8 +331,10 @@ impl Tab {
for tab_record in tab_records {
for item_record in item::restore(transaction, tab_record.id)? {
// Generate new `TabPage` with blank `Widget`
let (tab_page, target_child) =
new_tab_page(&self.tab_view, Position::After);
let (tab_page, target_child) = new_tab_page(
&self.tab_view,
Position::Number(item_record.page_position),
);
// Init new tab item
let item = Rc::new(Item::build(