Browse Source

render page on connection completed only

PHP-GTK3
yggverse 4 months ago
parent
commit
f05db4b291
  1. 6
      src/Entity/Browser/Container/Page.php

6
src/Entity/Browser/Container/Page.php

@ -181,6 +181,9 @@ class Page @@ -181,6 +181,9 @@ class Page
return false; // stop
}
// Stop event loop on request completed
if ($connection->isCompleted())
{
// Update title
$this->title->set(
$connection->getTitle(),
@ -224,9 +227,6 @@ class Page @@ -224,9 +227,6 @@ class Page
);
}
// Stop event loop on request completed
if ($connection->isCompleted())
{
// Hide progressbar
$this->progressbar->hide();

Loading…
Cancel
Save