From 2e8e06537185fd52922c5124dc7e1c2c446d647f Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 20 Jul 2024 16:49:00 +0300 Subject: [PATCH] use host as subtitle --- src/Model/Connection/Gemini.php | 14 ++++---------- src/Model/Connection/Nex.php | 7 ++----- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/Model/Connection/Gemini.php b/src/Model/Connection/Gemini.php index 4cfc401a..4ccc8ef3 100644 --- a/src/Model/Connection/Gemini.php +++ b/src/Model/Connection/Gemini.php @@ -50,8 +50,7 @@ class Gemini ); $this->_connection->setSubtitle( - $response->getMeta() ? $response->getMeta() - : _('Response expected') + $address->getHost() ); $this->_connection->setTooltip( @@ -102,7 +101,7 @@ class Gemini // Set subtitle $this->_connection->setSubtitle( - $response->getMeta() + $address->getHost() ); // Set tooltip @@ -125,7 +124,7 @@ class Gemini ); $this->_connection->setSubtitle( - $response->getMeta() + $address->getHost() ); $this->_connection->setTooltip( @@ -155,12 +154,7 @@ class Gemini ); $this->_connection->setSubtitle( - sprintf( - 'Could not open request (code: %d)', - intval( - $response->getCode() - ) - ) + $address->getHost() ); $this->_connection->setTooltip( diff --git a/src/Model/Connection/Nex.php b/src/Model/Connection/Nex.php index 4ba7d4a0..4742d2ce 100644 --- a/src/Model/Connection/Nex.php +++ b/src/Model/Connection/Nex.php @@ -59,7 +59,7 @@ class Nex // Set subtitle $this->_connection->setSubtitle( - $mime + $address->getHost() ); // Set tooltip @@ -83,10 +83,7 @@ class Nex ); $this->_connection->setSubtitle( - sprintf( - _('Could not open request - %s'), - $address->get() - ) + $address->getHost() ); $this->_connection->setTooltip(