[clients_icons] Remove redundant option and update descriptions

This commit is contained in:
mesonium
2024-06-11 18:08:56 +00:00
committed by Daniel Brötzmann
parent 6d2e4014d7
commit dadfbeb67f
3 changed files with 4 additions and 15 deletions

View File

@@ -42,8 +42,8 @@ log = logging.getLogger('gajim.p.client_icons')
class ClientsIconsPlugin(GajimPlugin):
def init(self) -> None:
self.description = _('Shows client icons in your contact list '
'and in the groupchat participants list.')
self.description = _('Shows client icons in your contact list'
' in a tooltip.')
self.config_dialog = partial(ClientsIconsConfigDialog, self)
self.gui_extension_points = {
@@ -53,7 +53,6 @@ class ClientsIconsPlugin(GajimPlugin):
}
self.config_default_values = {
'show_in_tooltip': (True, ''),
'show_unknown_icon': (True, ''),
}
@@ -94,9 +93,6 @@ class ClientsIconsPlugin(GajimPlugin):
resource: ResourceContact
) -> None:
if not self.config['show_in_tooltip']:
return
result = self._get_image_and_client_name(resource, resource_box)
if result is None:
return