From e503523cad8e611df0f510c9c9dcdc19e8a36772 Mon Sep 17 00:00:00 2001 From: lovetox <philipp@hoerist.com> Date: Wed, 29 Jul 2020 12:49:07 +0200 Subject: [PATCH] Preferences: Don't use get_options() This is in preparation of migrating the config module --- gajim/gtk/preferences.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gajim/gtk/preferences.py b/gajim/gtk/preferences.py index c4058c34b8..88a7faf9fe 100644 --- a/gajim/gtk/preferences.py +++ b/gajim/gtk/preferences.py @@ -161,7 +161,8 @@ def __init__(self): # Group chat settings threshold_model = self._ui.sync_threshold_combobox.get_model() - days = app.config.get_options('threshold_options', return_type=int) + options = app.config.get('threshold_options').split(',') + days = [int(option.strip()) for option in options] for day in days: if day == 0: label = _('No threshold') -- GitLab