add request text argument for new tab action

This commit is contained in:
yggverse 2024-09-27 16:04:27 +03:00
parent 404da1fa74
commit 5ce6090d7a
6 changed files with 18 additions and 10 deletions

View file

@ -32,10 +32,10 @@ pub struct Page {
impl Page {
// Construct
pub fn new(name: GString) -> Page {
pub fn new(name: GString, navigation_request_text: Option<GString>) -> Page {
// Init components
let content = Arc::new(Content::new());
let navigation = Arc::new(Navigation::new());
let navigation = Arc::new(Navigation::new(navigation_request_text));
// Init widget
let widget = Box::builder()