Commit e503523c authored by Philipp Hörist's avatar Philipp Hörist

Preferences: Don't use get_options()

This is in preparation of migrating the config module
parent 93d4e512
Pipeline #5986 passed with stages
in 4 minutes and 25 seconds
......@@ -161,7 +161,8 @@ class Preferences(Gtk.ApplicationWindow):
# 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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment