mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add timeout on request change actions apply
This commit is contained in:
parent
2322d1f4aa
commit
fb2f135e0d
1 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue