memory (params): add parameters "Show offline contacts" and "Show empty groups"
This commit is contained in:
parent
9378e1306a
commit
136395eb6d
2 changed files with 8 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ class Const(object):
|
|||
GENERAL = "general"
|
||||
# General parameters
|
||||
HISTORY_LIMIT = "History"
|
||||
SHOW_OFFLINE_CONTACTS = "Offline contacts"
|
||||
SHOW_EMPTY_GROUPS = "Empty groups"
|
||||
# Parameters related to connection
|
||||
FORCE_SERVER_PARAM = "Force server"
|
||||
FORCE_PORT_PARAM = "Force port"
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ class Params(object):
|
|||
<category name="General" label="%(category_general)s">
|
||||
<param name="Password" value="" type="password" />
|
||||
<param name="%(history_param)s" label="%(history_label)s" value="20" constraint="0;100" type="int" security="0" />
|
||||
<param name="%(show_offline_contacts)s" label="%(show_offline_contacts_label)s" value="false" type="bool" security="0" />
|
||||
<param name="%(show_empty_groups)s" label="%(show_empty_groups_label)s" value="false" type="bool" security="0" />
|
||||
</category>
|
||||
<category name="Connection" label="%(category_connection)s">
|
||||
<param name="JabberID" value="name@example.org/SàT" type="string" />
|
||||
|
|
@ -66,6 +68,10 @@ class Params(object):
|
|||
'category_connection': D_("Connection"),
|
||||
'history_param': C.HISTORY_LIMIT,
|
||||
'history_label': D_('Chat history limit'),
|
||||
'show_offline_contacts': C.SHOW_OFFLINE_CONTACTS,
|
||||
'show_offline_contacts_label': D_('Show offline contacts'),
|
||||
'show_empty_groups': C.SHOW_EMPTY_GROUPS,
|
||||
'show_empty_groups_label': D_('Show empty groups'),
|
||||
'force_server_param': C.FORCE_SERVER_PARAM,
|
||||
'force_port_param': C.FORCE_PORT_PARAM,
|
||||
'new_account_label': D_("Register new account"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue