mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
update header mod api
This commit is contained in:
parent
83040ada79
commit
080e07da94
@ -17,6 +17,7 @@ pub struct Browser {
|
||||
|
||||
pub fn new(app: &Application, db: Arc<sqlite::Connection>, width: i32, height: i32) -> Browser {
|
||||
// Init components
|
||||
let header = Arc::new(header::new());
|
||||
let main = Arc::new(main::new());
|
||||
|
||||
// Init widget
|
||||
@ -25,7 +26,7 @@ pub fn new(app: &Application, db: Arc<sqlite::Connection>, width: i32, height: i
|
||||
.default_width(width)
|
||||
.default_height(height)
|
||||
.application(app)
|
||||
.titlebar(&header::new())
|
||||
.titlebar(header.widget.as_ref())
|
||||
.child(main.widget.as_ref())
|
||||
.build(),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user