mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement refresh method
This commit is contained in:
parent
c9aacdff4f
commit
1727dd04be
2 changed files with 12 additions and 5 deletions
|
|
@ -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()
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue