Browse Source

implement refresh method

PHP-GTK3
yggverse 5 months ago
parent
commit
1727dd04be
  1. 11
      src/Entity/Window/Tab/Address/Navbar/Go.php
  2. 6
      src/Entity/Window/Tab/Address/Navbar/Request.php

11
src/Entity/Window/Tab/Address/Navbar/Go.php

@ -14,4 +14,15 @@ class Go extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\Button @@ -14,4 +14,15 @@ class Go extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\Button
{
$this->navbar->address->update();
}
public function refresh(): void
{
$this->gtk->set_sensitive(
!empty(
trim(
$this->navbar->request->gtk->get_text()
)
)
);
}
}

6
src/Entity/Window/Tab/Address/Navbar/Request.php

@ -22,10 +22,6 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\E @@ -22,10 +22,6 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\E
{
$this->navbar->base->refresh();
$this->navbar->go->gtk->set_sensitive(
!empty(
$entry->get_text()
)
);
$this->navbar->go->refresh();
}
}
Loading…
Cancel
Save