Browse Source

add timeout on request change actions apply

PHP-GTK3
yggverse 4 months ago
parent
commit
fb2f135e0d
  1. 8
      src/Entity/Browser/Container/Page/Navbar/Request.php

8
src/Entity/Browser/Container/Page/Navbar/Request.php

@ -35,8 +35,16 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb @@ -35,8 +35,16 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb
{
// Update session on tab initiated only
if (isset($this->navbar->page->container->tab))
{
\Gtk::timeout_add(
1000, // wait for one second to apply changes
function()
{
$this->navbar->page->container->tab->updateSession();
return false; // stop
}
);
}
}
}
Loading…
Cancel
Save