mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
rename constructors
This commit is contained in:
parent
941b1cc283
commit
edb385f903
36 changed files with 266 additions and 180 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue