From 136395eb6d619e6321c9ca9aa3385def26470b62 Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 6 Oct 2014 11:20:43 +0200 Subject: [PATCH] memory (params): add parameters "Show offline contacts" and "Show empty groups" --- src/core/constants.py | 2 ++ src/memory/params.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/core/constants.py b/src/core/constants.py index 2e1eaab5..b00fbdc2 100644 --- a/src/core/constants.py +++ b/src/core/constants.py @@ -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" diff --git a/src/memory/params.py b/src/memory/params.py index f8158785..a04e98b1 100644 --- a/src/memory/params.py +++ b/src/memory/params.py @@ -45,6 +45,8 @@ class Params(object): + + @@ -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"),