mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
fix tabs order on session restore
This commit is contained in:
parent
e7c55e1b19
commit
8b67f70573
2 changed files with 10 additions and 5 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue