Browse Source

update header bar title on page index available only

PHP-GTK3
yggverse 4 months ago
parent
commit
ff3187a495
  1. 11
      src/Entity/Browser/Container/Tab.php

11
src/Entity/Browser/Container/Tab.php

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

Loading…
Cancel
Save