Browse Source

use host as subtitle

PHP-GTK3
yggverse 4 months ago
parent
commit
2e8e065371
  1. 14
      src/Model/Connection/Gemini.php
  2. 7
      src/Model/Connection/Nex.php

14
src/Model/Connection/Gemini.php

@ -50,8 +50,7 @@ class Gemini
); );
$this->_connection->setSubtitle( $this->_connection->setSubtitle(
$response->getMeta() ? $response->getMeta() $address->getHost()
: _('Response expected')
); );
$this->_connection->setTooltip( $this->_connection->setTooltip(
@ -102,7 +101,7 @@ class Gemini
// Set subtitle // Set subtitle
$this->_connection->setSubtitle( $this->_connection->setSubtitle(
$response->getMeta() $address->getHost()
); );
// Set tooltip // Set tooltip
@ -125,7 +124,7 @@ class Gemini
); );
$this->_connection->setSubtitle( $this->_connection->setSubtitle(
$response->getMeta() $address->getHost()
); );
$this->_connection->setTooltip( $this->_connection->setTooltip(
@ -155,12 +154,7 @@ class Gemini
); );
$this->_connection->setSubtitle( $this->_connection->setSubtitle(
sprintf( $address->getHost()
'Could not open request (code: %d)',
intval(
$response->getCode()
)
)
); );
$this->_connection->setTooltip( $this->_connection->setTooltip(

7
src/Model/Connection/Nex.php

@ -59,7 +59,7 @@ class Nex
// Set subtitle // Set subtitle
$this->_connection->setSubtitle( $this->_connection->setSubtitle(
$mime $address->getHost()
); );
// Set tooltip // Set tooltip
@ -83,10 +83,7 @@ class Nex
); );
$this->_connection->setSubtitle( $this->_connection->setSubtitle(
sprintf( $address->getHost()
_('Could not open request - %s'),
$address->get()
)
); );
$this->_connection->setTooltip( $this->_connection->setTooltip(

Loading…
Cancel
Save