Browse Source

add timeout on request change actions apply

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

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

@ -36,7 +36,15 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb @@ -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
}
);
}
}
}
Loading…
Cancel
Save