From 080e07da943a9d8453194e5ff9ec2209f8c58e27 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 22 Sep 2024 12:41:20 +0300 Subject: [PATCH] update header mod api --- src/browser/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/browser/mod.rs b/src/browser/mod.rs index 73b279eb..538f22cd 100644 --- a/src/browser/mod.rs +++ b/src/browser/mod.rs @@ -17,6 +17,7 @@ pub struct Browser { pub fn new(app: &Application, db: Arc, 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, 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(), );