[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

View File

@@ -36,13 +36,6 @@ class ClientsIconsConfigDialog(SettingsDialog):
self.plugin = plugin
settings = [
Setting(SettingKind.SWITCH,
_('Show Icons in Tooltip'),
SettingType.VALUE,
self.plugin.config['show_in_tooltip'],
callback=self._on_setting,
data='show_in_tooltip'),
Setting(SettingKind.SWITCH,
_('Show Icon for Unknown Clients'),
SettingType.VALUE,

View File

@@ -4,7 +4,7 @@
"Artem Klyop <art.klyop@gmail.com>",
"Thilo Molitor <thilo@eightysoft.de>"
],
"description": "Shows client icons in roster and in groupchats.",
"description": "Shows client icons in your contact list in a tooltip.",
"homepage": "https://dev.gajim.org/gajim/gajim-plugins/wikis/ClientsIconsPlugin",
"config_dialog": true,
"name": "Clients icons",
@@ -19,4 +19,4 @@
],
"short_name": "clients_icons",
"version": "7.10.8"
}
}