From fccc40cf66162f53ce7b9b0631c1f57db342c50a Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 10 Apr 2024 06:19:35 +0300 Subject: [PATCH] add reload button released event --- src/Box/Tab.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Box/Tab.php b/src/Box/Tab.php index a3dd760a..590c90e8 100644 --- a/src/Box/Tab.php +++ b/src/Box/Tab.php @@ -92,6 +92,18 @@ class Tab ); } ); + + $this->navigation->reload->button->connect( + 'released', + function ($entry) + { + $this->navigate( + $this->navigation->address->entry->get_text() + ); + } + ); + + // @TODO home, back, forward buttons } public function navigate(string $url)