set titles from connection response

This commit is contained in:
yggverse 2024-07-18 12:26:26 +03:00
parent 03b4555c5d
commit 2f6ac84f3e
2 changed files with 18 additions and 4 deletions

View file

@ -43,6 +43,20 @@ class Gemini
case 10: // response expected
case 11: // sensitive input
$this->_connection->setTitle(
_('Pending...')
);
$this->_connection->setSubtitle(
$response->getMeta() ? $response->getMeta()
: _('Response expected')
);
$this->_connection->setTooltip(
$response->getMeta() ? $response->getMeta()
: _('Response expected')
);
$this->_connection->setMime(
Filesystem::MIME_TEXT_GEMINI
);
@ -89,7 +103,7 @@ class Gemini
// show link, no follow
$this->_connection->setTitle(
_('Redirect!')
_('Redirect...')
);
$this->_connection->setData(