@ -76,9 +76,7 @@ class Address
);
// Update navbar elements
$this->navbar->base->update(
$address
$this->navbar->base->refresh();
if ($history)
{
@ -37,19 +37,19 @@ class Base extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\Butt
$this->update();
}
public function update(
?\Yggverse\Net\Address $address = null
): void
if (is_null($address))
public function refresh(): void
$address = new \Yggverse\Net\Address(
$this->navbar->request->gtk->get_text()
rtrim(
$this->navbar->request->gtk->get_text(),
'/'
)
$this->navbar->base->gtk->set_sensitive(
$address->getHost() && ($address->getPath() || $address->getQuery())
$address->getHost() && (
$address->getPath() || $address->getQuery()
@ -20,7 +20,7 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\E
\GdkEvent $event
$this->navbar->base->update();
$this->navbar->go->gtk->set_sensitive(
!empty(