show homepage button only if provided in settings

This commit is contained in:
yggverse 2024-04-10 06:41:53 +03:00
parent 7cbda678ea
commit b2e4cf70b9
2 changed files with 16 additions and 13 deletions

View file

@ -29,7 +29,7 @@ class Navigation
$name $name
); );
if ($config->interface->window->navigation->button->home) if ($config->interface->window->navigation->button->home && $config->homepage)
{ {
$this->home = new \Yggverse\Yoda\Button\Home(); $this->home = new \Yggverse\Yoda\Button\Home();

View file

@ -109,6 +109,8 @@ class Tab
} }
); );
if ($this->config->homepage)
{
$this->navigation->home->button->connect( $this->navigation->home->button->connect(
'released', 'released',
function ($entry) function ($entry)
@ -122,6 +124,7 @@ class Tab
); );
} }
); );
}
// @TODO back, forward buttons // @TODO back, forward buttons
} }