Added compact announce stream option

This commit is contained in:
Mark Qvist 2023-08-13 21:54:35 +02:00
parent 919a146da1
commit 22a7acf259
3 changed files with 56 additions and 0 deletions

View file

@ -126,6 +126,7 @@ class NomadNetworkApp:
self.periodic_lxmf_sync = True
self.lxmf_sync_interval = 360*60
self.lxmf_sync_limit = 8
self.compact_stream = False
if not os.path.isdir(self.storagepath):
os.makedirs(self.storagepath)
@ -698,6 +699,10 @@ class NomadNetworkApp:
else:
self.lxmf_sync_limit = None
if option == "compact_announce_stream":
value = self.config["client"].as_bool(option)
self.compact_stream = value
if option == "user_interface":
value = value.lower()
if value == "none":
@ -929,6 +934,12 @@ lxmf_sync_interval = 360
# the limit, and download everything every time.
lxmf_sync_limit = 8
# The announce stream will only show one entry
# per destination or node by default. You can
# change this to show as many announces as have
# been received, for every destination.
compact_announce_stream = yes
[textui]
# Amount of time to show intro screen