mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement tab pin status on session save/restore
This commit is contained in:
parent
fb8ef48917
commit
50f56c68f4
4 changed files with 26 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ impl Widget {
|
|||
tab_view: &TabView,
|
||||
page: &Box,
|
||||
title: Option<&str>,
|
||||
is_pinned: bool,
|
||||
is_selected: bool,
|
||||
) -> Arc<Self> {
|
||||
let gobject = tab_view.append(page);
|
||||
|
|
@ -26,6 +27,8 @@ impl Widget {
|
|||
None => DEFAULT_TITLE,
|
||||
});
|
||||
|
||||
tab_view.set_page_pinned(&gobject, is_pinned);
|
||||
|
||||
if is_selected {
|
||||
tab_view.set_selected_page(&gobject);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue