Browse Source

update header mod api

master
yggverse 2 months ago
parent
commit
080e07da94
  1. 3
      src/browser/mod.rs

3
src/browser/mod.rs

@ -17,6 +17,7 @@ pub struct Browser { @@ -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 @@ -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…
Cancel
Save