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 @@ -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 @@ -102,7 +101,7 @@ class Gemini
// Set subtitle
$this->_connection->setSubtitle(
$response->getMeta()
$address->getHost()
);
// Set tooltip
@ -125,7 +124,7 @@ class Gemini @@ -125,7 +124,7 @@ class Gemini
);
$this->_connection->setSubtitle(
$response->getMeta()
$address->getHost()
);
$this->_connection->setTooltip(
@ -155,12 +154,7 @@ class Gemini @@ -155,12 +154,7 @@ class Gemini
);
$this->_connection->setSubtitle(
sprintf(
'Could not open request (code: %d)',
intval(
$response->getCode()
)
)
$address->getHost()
);
$this->_connection->setTooltip(

7
src/Model/Connection/Nex.php

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

Loading…
Cancel
Save