mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update header mod api
This commit is contained in:
parent
83040ada79
commit
080e07da94
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue