diff --git a/src/Entity/Browser/Container/Page/Navbar/Request.php b/src/Entity/Browser/Container/Page/Navbar/Request.php index 38b580db..e0ecfc26 100644 --- a/src/Entity/Browser/Container/Page/Navbar/Request.php +++ b/src/Entity/Browser/Container/Page/Navbar/Request.php @@ -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(); + } + } } \ No newline at end of file