Browse Source

rename constructors

master
yggverse 2 months ago
parent
commit
97bc98fd0b
  1. 2
      src/app/browser/window/tab.rs
  2. 4
      src/app/browser/window/tab/item.rs

2
src/app/browser/window/tab.rs

@ -91,7 +91,7 @@ impl Tab { @@ -91,7 +91,7 @@ impl Tab {
is_initially_current: bool,
) -> Arc<Item> {
// Init new tab item
let item = Item::new(
let item = Item::new_arc(
page_navigation_request_text.clone(),
is_initially_current,
// Actions

4
src/app/browser/window/tab/item.rs

@ -29,7 +29,7 @@ pub struct Item { @@ -29,7 +29,7 @@ pub struct Item {
impl Item {
// Construct
pub fn new(
pub fn new_arc(
page_navigation_request_text: Option<GString>,
is_initially_current: bool,
// Actions
@ -142,7 +142,7 @@ impl Item { @@ -142,7 +142,7 @@ impl Item {
Ok(records) => {
for record in records {
// Construct new item object
let item = Item::new(
let item = Item::new_arc(
None,
record.is_initially_current,
// Actions

Loading…
Cancel
Save