From ff3187a495f1cbdd3f0663853bae97678d1a90d1 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 12 Jul 2024 19:44:24 +0300 Subject: [PATCH] update header bar title on page index available only --- src/Entity/Browser/Container/Tab.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Entity/Browser/Container/Tab.php b/src/Entity/Browser/Container/Tab.php index aa1b45ef..78ff25db 100644 --- a/src/Entity/Browser/Container/Tab.php +++ b/src/Entity/Browser/Container/Tab.php @@ -55,10 +55,13 @@ class Tab int $page_num ) { // Update header bar title - $this->container->browser->header->setTitle( - $this->getPage($page_num)->title->getValue(), - $this->getPage($page_num)->title->getSubtitle() - ); + if ($page = $this->getPage($page_num)) + { + $this->container->browser->header->setTitle( + $page->title->getValue(), + $page->title->getSubtitle() + ); + } // Keep current selection $self->grab_focus();