[clients_icons] Remove redundant option and update descriptions
This commit is contained in:
committed by
Daniel Brötzmann
parent
6d2e4014d7
commit
dadfbeb67f
@@ -42,8 +42,8 @@ log = logging.getLogger('gajim.p.client_icons')
|
|||||||
|
|
||||||
class ClientsIconsPlugin(GajimPlugin):
|
class ClientsIconsPlugin(GajimPlugin):
|
||||||
def init(self) -> None:
|
def init(self) -> None:
|
||||||
self.description = _('Shows client icons in your contact list '
|
self.description = _('Shows client icons in your contact list'
|
||||||
'and in the groupchat participants list.')
|
' in a tooltip.')
|
||||||
self.config_dialog = partial(ClientsIconsConfigDialog, self)
|
self.config_dialog = partial(ClientsIconsConfigDialog, self)
|
||||||
|
|
||||||
self.gui_extension_points = {
|
self.gui_extension_points = {
|
||||||
@@ -53,7 +53,6 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.config_default_values = {
|
self.config_default_values = {
|
||||||
'show_in_tooltip': (True, ''),
|
|
||||||
'show_unknown_icon': (True, ''),
|
'show_unknown_icon': (True, ''),
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,9 +93,6 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
resource: ResourceContact
|
resource: ResourceContact
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
||||||
if not self.config['show_in_tooltip']:
|
|
||||||
return
|
|
||||||
|
|
||||||
result = self._get_image_and_client_name(resource, resource_box)
|
result = self._get_image_and_client_name(resource, resource_box)
|
||||||
if result is None:
|
if result is None:
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -36,13 +36,6 @@ class ClientsIconsConfigDialog(SettingsDialog):
|
|||||||
|
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
settings = [
|
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,
|
Setting(SettingKind.SWITCH,
|
||||||
_('Show Icon for Unknown Clients'),
|
_('Show Icon for Unknown Clients'),
|
||||||
SettingType.VALUE,
|
SettingType.VALUE,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"Artem Klyop <art.klyop@gmail.com>",
|
"Artem Klyop <art.klyop@gmail.com>",
|
||||||
"Thilo Molitor <thilo@eightysoft.de>"
|
"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",
|
"homepage": "https://dev.gajim.org/gajim/gajim-plugins/wikis/ClientsIconsPlugin",
|
||||||
"config_dialog": true,
|
"config_dialog": true,
|
||||||
"name": "Clients icons",
|
"name": "Clients icons",
|
||||||
|
|||||||
Reference in New Issue
Block a user