mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
show homepage button only if provided in settings
This commit is contained in:
parent
7cbda678ea
commit
b2e4cf70b9
2 changed files with 16 additions and 13 deletions
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,19 +109,22 @@ class Tab
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->navigation->home->button->connect(
|
if ($this->config->homepage)
|
||||||
'released',
|
{
|
||||||
function ($entry)
|
$this->navigation->home->button->connect(
|
||||||
{
|
'released',
|
||||||
$this->navigation->address->entry->set_text(
|
function ($entry)
|
||||||
$this->config->homepage
|
{
|
||||||
);
|
$this->navigation->address->entry->set_text(
|
||||||
|
$this->config->homepage
|
||||||
|
);
|
||||||
|
|
||||||
$this->navigate(
|
$this->navigate(
|
||||||
$this->config->homepage
|
$this->config->homepage
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// @TODO back, forward buttons
|
// @TODO back, forward buttons
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue