mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +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();
|
$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->base->refresh();
|
||||||
|
|
||||||
$this->navbar->go->gtk->set_sensitive(
|
$this->navbar->go->refresh();
|
||||||
!empty(
|
|
||||||
$entry->get_text()
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue