mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-01 19:16:10 -04:00
Added ability to ignore unknown senders
This commit is contained in:
parent
26aa9dc1bf
commit
ce9f9f42d7
3 changed files with 31 additions and 0 deletions
|
@ -1258,6 +1258,10 @@ class SidebandApp(MDApp):
|
|||
self.sideband.config["propagation_by_default"] = self.root.ids.settings_lxmf_delivery_by_default.active
|
||||
self.sideband.save_configuration()
|
||||
|
||||
def save_lxmf_ignore_unknown(sender=None, event=None):
|
||||
self.sideband.config["lxmf_ignore_unknown"] = self.root.ids.settings_lxmf_ignore_unknown.active
|
||||
self.sideband.save_configuration()
|
||||
|
||||
def save_lxmf_sync_limit(sender=None, event=None):
|
||||
self.sideband.config["lxmf_sync_limit"] = self.root.ids.settings_lxmf_sync_limit.active
|
||||
self.sideband.save_configuration()
|
||||
|
@ -1333,6 +1337,9 @@ class SidebandApp(MDApp):
|
|||
self.root.ids.settings_lxmf_delivery_by_default.active = self.sideband.config["propagation_by_default"]
|
||||
self.root.ids.settings_lxmf_delivery_by_default.bind(active=save_lxmf_delivery_by_default)
|
||||
|
||||
self.root.ids.settings_lxmf_ignore_unknown.active = self.sideband.config["lxmf_ignore_unknown"]
|
||||
self.root.ids.settings_lxmf_ignore_unknown.bind(active=save_lxmf_ignore_unknown)
|
||||
|
||||
self.root.ids.settings_lxmf_periodic_sync.active = self.sideband.config["lxmf_periodic_sync"]
|
||||
self.root.ids.settings_lxmf_periodic_sync.bind(active=save_lxmf_periodic_sync)
|
||||
save_lxmf_periodic_sync(save=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue