|
|
@ -21,7 +21,7 @@ impl Tab { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Actions
|
|
|
|
// Actions
|
|
|
|
pub fn append(&self, is_active: bool) -> u32 { |
|
|
|
pub fn append(&self, is_current_page: bool) -> u32 { |
|
|
|
// Init new tab components
|
|
|
|
// Init new tab components
|
|
|
|
let label = Arc::new(Label::new(false)); |
|
|
|
let label = Arc::new(Label::new(false)); |
|
|
|
let page = Page::new(); |
|
|
|
let page = Page::new(); |
|
|
@ -47,7 +47,7 @@ impl Tab { |
|
|
|
self.widget.set_tab_reorderable(page.widget(), true); |
|
|
|
self.widget.set_tab_reorderable(page.widget(), true); |
|
|
|
|
|
|
|
|
|
|
|
// Follow?
|
|
|
|
// Follow?
|
|
|
|
if is_active { |
|
|
|
if is_current_page { |
|
|
|
self.widget.set_current_page(Some(page_number)); |
|
|
|
self.widget.set_current_page(Some(page_number)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|