From fb2f135e0d76c181bdf17da6fd43cb9673a6abf6 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 19 Jul 2024 17:45:51 +0300 Subject: [PATCH] add timeout on request change actions apply --- src/Entity/Browser/Container/Page/Navbar/Request.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Entity/Browser/Container/Page/Navbar/Request.php b/src/Entity/Browser/Container/Page/Navbar/Request.php index a8976537..ac9e130b 100644 --- a/src/Entity/Browser/Container/Page/Navbar/Request.php +++ b/src/Entity/Browser/Container/Page/Navbar/Request.php @@ -36,7 +36,15 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb // Update session on tab initiated only if (isset($this->navbar->page->container->tab)) { - $this->navbar->page->container->tab->updateSession(); + \Gtk::timeout_add( + 1000, // wait for one second to apply changes + function() + { + $this->navbar->page->container->tab->updateSession(); + + return false; // stop + } + ); } } } \ No newline at end of file