implement tab pin status on session save/restore

This commit is contained in:
yggverse 2024-10-11 06:29:50 +03:00
parent fb8ef48917
commit 50f56c68f4
4 changed files with 26 additions and 3 deletions

View file

@ -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);
}