Philipp Hörist pushed to branch master at gajim / gajim
Commits: 6baed38d by Philipp Hörist at 2018-04-09T00:35:27+02:00 Make code better understandable - - - - - 1 changed file: - gajim/options_dialog.py Changes: ===================================== gajim/options_dialog.py ===================================== --- a/gajim/options_dialog.py +++ b/gajim/options_dialog.py @@ -210,11 +210,11 @@ class GenericOption(Gtk.Grid): self.set_property('option-value', state) @staticmethod - def set_no_log_for(account, jid): + def set_no_log_for(account, state): no_log = app.config.get_per('accounts', account, 'no_log_for').split() - if jid and account in no_log: + if state and account in no_log: no_log.remove(account) - elif not jid and account not in no_log: + elif not state and account not in no_log: no_log.append(account) app.config.set_per('accounts', account, 'no_log_for', ' '.join(no_log)) View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6baed38d4ce7005c2f82b1ff2cb32141d7faf2eb --- View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6baed38d4ce7005c2f82b1ff2cb32141d7faf2eb You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits