mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 10:24:13 +00:00
rename argument
This commit is contained in:
parent
a1cf47fb1f
commit
a3a1775676
@ -21,7 +21,7 @@ impl Tab {
|
||||
}
|
||||
|
||||
// Actions
|
||||
pub fn append(&self, is_active: bool) -> u32 {
|
||||
pub fn append(&self, is_current_page: bool) -> u32 {
|
||||
// Init new tab components
|
||||
let label = Arc::new(Label::new(false));
|
||||
let page = Page::new();
|
||||
@ -47,7 +47,7 @@ impl Tab {
|
||||
self.widget.set_tab_reorderable(page.widget(), true);
|
||||
|
||||
// Follow?
|
||||
if is_active {
|
||||
if is_current_page {
|
||||
self.widget.set_current_page(Some(page_number));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user