prevent signal propagation

This commit is contained in:
yggverse 2024-07-10 11:44:34 +03:00
parent c66dd6b94c
commit 9ae707f021

View file

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