Browse Source

prevent signal propagation

PHP-GTK3
yggverse 4 months ago
parent
commit
9ae707f021
  1. 20
      src/Entity/Browser/Container/Page/Content/Data.php

20
src/Entity/Browser/Container/Page/Content/Data.php

@ -60,13 +60,33 @@ class Data
\GtkLabel $label, \GtkLabel $label,
string $href string $href
) { ) {
// Format URL
$url = $this->_url(
$href
);
// Update request entry
$this->content->page->navbar->request->setValue( $this->content->page->navbar->request->setValue(
$this->_url( $this->_url(
$href $href
) )
); );
// Update page
$this->content->page->update(); $this->content->page->update();
// Prevent propagation for supported protocols
if (in_array(
parse_url(
$url,
PHP_URL_SCHEME
),
[
'nex',
'gemini',
'file'
])
) return true;
} }
); );
} }

Loading…
Cancel
Save