mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 18:34:14 +00:00
rename argument
This commit is contained in:
parent
a1cf47fb1f
commit
a3a1775676
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user