mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
28 lines
679 B
PHP
28 lines
679 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Yggverse\Yoda\Entity\Browser\History\Container\Navbar;
|
|
|
|
class Open extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button
|
|
{
|
|
protected string $_label = 'Open';
|
|
|
|
protected function _onCLick(
|
|
\GtkButton $entity
|
|
): void
|
|
{
|
|
$this->navbar->container->history->browser->container->tab->append(
|
|
$this->navbar->container->content->table->getSelectedUrl()
|
|
);
|
|
}
|
|
|
|
public function refresh(): void
|
|
{
|
|
$this->gtk->set_sensitive(
|
|
boolval(
|
|
$this->navbar->container->content->table->getSelectedId()
|
|
)
|
|
);
|
|
}
|
|
}
|