mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
prevent signal propagation
This commit is contained in:
parent
c66dd6b94c
commit
9ae707f021
1 changed files with 20 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue