update header bar title on page index available only

This commit is contained in:
yggverse 2024-07-12 19:44:24 +03:00
parent 6dc10404ce
commit ff3187a495

View file

@ -55,10 +55,13 @@ class Tab
int $page_num int $page_num
) { ) {
// Update header bar title // Update header bar title
if ($page = $this->getPage($page_num))
{
$this->container->browser->header->setTitle( $this->container->browser->header->setTitle(
$this->getPage($page_num)->title->getValue(), $page->title->getValue(),
$this->getPage($page_num)->title->getSubtitle() $page->title->getSubtitle()
); );
}
// Keep current selection // Keep current selection
$self->grab_focus(); $self->grab_focus();