mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update header bar title on page index available only
This commit is contained in:
parent
6dc10404ce
commit
ff3187a495
1 changed files with 7 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue