@@ -39,6 +39,10 @@ class LengthNotifierConfigDialog(SettingsDialog):
|
|||||||
|
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
jids = self.plugin.config['JIDS'] or ''
|
jids = self.plugin.config['JIDS'] or ''
|
||||||
|
if isinstance(jids, list):
|
||||||
|
# Gajim 1.0 stored this as list[str]
|
||||||
|
jids = ','.join(jids)
|
||||||
|
|
||||||
settings = [
|
settings = [
|
||||||
Setting(SettingKind.SPIN,
|
Setting(SettingKind.SPIN,
|
||||||
_('Message Length'),
|
_('Message Length'),
|
||||||
@@ -68,7 +72,8 @@ class LengthNotifierConfigDialog(SettingsDialog):
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
SettingsDialog.__init__(self, parent,
|
SettingsDialog.__init__(self,
|
||||||
|
parent,
|
||||||
_('Length Notifier Configuration'),
|
_('Length Notifier Configuration'),
|
||||||
Gtk.DialogFlags.MODAL,
|
Gtk.DialogFlags.MODAL,
|
||||||
settings,
|
settings,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class LengthNotifierPlugin(GajimPlugin):
|
|||||||
'rgb(240, 220, 60)',
|
'rgb(240, 220, 60)',
|
||||||
'Highlight color for the message input'),
|
'Highlight color for the message input'),
|
||||||
'JIDS': (
|
'JIDS': (
|
||||||
[''],
|
'',
|
||||||
'Enable the plugin for selected XMPP addresses '
|
'Enable the plugin for selected XMPP addresses '
|
||||||
'only (comma separated)')
|
'only (comma separated)')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user