mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update session on request value change
This commit is contained in:
parent
e858944de7
commit
6d2096be7e
1 changed files with 21 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb
|
|||
$entry->get_text()
|
||||
);
|
||||
|
||||
$this->navbar->page->container->tab->updateSession(); // @TODO async page update
|
||||
$this->navbar->page->container->tab->updateSession();
|
||||
}
|
||||
|
||||
protected function _onKeyRelease(
|
||||
|
|
@ -28,4 +28,24 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb
|
|||
|
||||
$this->navbar->page->container->tab->updateSession();
|
||||
}
|
||||
|
||||
// Update setter with session update feature
|
||||
public function setValue(
|
||||
?string $value = null
|
||||
): void
|
||||
{
|
||||
$this->gtk->set_text(
|
||||
is_null($value) ? $this->_value : trim(
|
||||
strval(
|
||||
$value
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Update session on tab initiated only
|
||||
if (isset($this->navbar->page->container->tab))
|
||||
{
|
||||
$this->navbar->page->container->tab->updateSession();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue