mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
30 lines
No EOL
619 B
PHP
30 lines
No EOL
619 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Yggverse\Yoda\Entity\Browser\Container\Page\Navbar;
|
|
|
|
use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button;
|
|
|
|
class Go extends Button
|
|
{
|
|
public const IMAGE = 'view-refresh-symbolic';
|
|
public const LABEL = 'Go';
|
|
public const TOOLTIP = 'Update';
|
|
|
|
protected function _onCLick(
|
|
\GtkButton $entity
|
|
): void
|
|
{
|
|
$this->navbar->page->update();
|
|
}
|
|
|
|
public function refresh(): void
|
|
{
|
|
$this->gtk->set_sensitive(
|
|
!empty(
|
|
$this->navbar->request->getValue()
|
|
)
|
|
);
|
|
}
|
|
} |