diff --git a/src/Entity/Browser/Container/Page.php b/src/Entity/Browser/Container/Page.php index af3dc773..f3cf6df6 100644 --- a/src/Entity/Browser/Container/Page.php +++ b/src/Entity/Browser/Container/Page.php @@ -138,6 +138,13 @@ class Page int $timeout = 15 ): void { + // Request entry should not be empty to update + if (empty($this->navbar->request->getValue())) + { + // return; + throw new \Exception; + } + // Update title $this->title->set( _('Loading...') diff --git a/src/Entity/Browser/Container/Page/Navbar/Request.php b/src/Entity/Browser/Container/Page/Navbar/Request.php index f31aa8f6..30f1069d 100644 --- a/src/Entity/Browser/Container/Page/Navbar/Request.php +++ b/src/Entity/Browser/Container/Page/Navbar/Request.php @@ -16,8 +16,13 @@ class Request extends Entry \GtkEntry $entry ): void { + if (empty($this->getValue())) + { + return; + } + $this->navbar->page->open( - $entry->get_text() + $this->getValue() ); $this->navbar->page->container->tab->update();