mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use arc for tab
This commit is contained in:
parent
54ce146d90
commit
2a1e788f8d
2 changed files with 13 additions and 8 deletions
|
|
@ -2,16 +2,18 @@ mod label;
|
|||
mod page;
|
||||
mod widget;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Tab {
|
||||
widget: widget::Tab,
|
||||
}
|
||||
|
||||
impl Tab {
|
||||
// Construct
|
||||
pub fn new() -> Tab {
|
||||
Self {
|
||||
pub fn new() -> Arc<Tab> {
|
||||
Arc::new(Self {
|
||||
widget: widget::Tab::new(),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue