rename constructors

This commit is contained in:
yggverse 2025-01-15 00:25:33 +02:00
parent 941b1cc283
commit edb385f903
36 changed files with 266 additions and 180 deletions

View file

@ -25,11 +25,13 @@ pub struct Browser {
}
impl Browser {
// Construct
pub fn new(profile: Rc<Profile>) -> Browser {
// Constructors
/// Build new `Self`
pub fn build(profile: &Rc<Profile>) -> Browser {
// Init components
let action = Rc::new(Action::new());
let window = Rc::new(Window::new(profile.clone(), action.clone()));
let window = Rc::new(Window::build(profile, &action));
// Init widget
let widget = Rc::new(Widget::new(