Browse Source

add timeout message

PHP-GTK3
yggverse 5 months ago
parent
commit
50c41485ac
  1. 10
      src/Entity/Browser/Container/Page.php

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

@ -223,6 +223,16 @@ class Page
// Stop event loop on request expired // Stop event loop on request expired
if (time() > $expire) if (time() > $expire)
{ {
// Update title
$this->title->set(
_('Timeout')
);
// Update content
$this->content->setGemtext(
_('Response time reached')
);
// Hide progressbar // Hide progressbar
$this->progressbar->hide(); $this->progressbar->hide();

Loading…
Cancel
Save