Added settings import and export

This commit is contained in:
Mark Qvist 2024-08-30 15:12:59 +02:00
parent bbefc39fd7
commit 596c548522
2 changed files with 74 additions and 1 deletions

View file

@ -108,7 +108,7 @@ class SidebandCore():
# stream logger
self.log_announce(destination_hash, app_data, dest_type=SidebandCore.aspect_filter)
def __init__(self, owner_app, config_path = None, is_service=False, is_client=False, android_app_dir=None, verbose=False, owner_service=None, service_context=None, is_daemon=False):
def __init__(self, owner_app, config_path = None, is_service=False, is_client=False, android_app_dir=None, verbose=False, owner_service=None, service_context=None, is_daemon=False, load_config_only=False):
self.is_service = is_service
self.is_client = is_client
self.is_daemon = is_daemon
@ -231,6 +231,9 @@ class SidebandCore():
except Exception as e:
RNS.log("Error while configuring Sideband: "+str(e), RNS.LOG_ERROR)
if load_config_only:
return
# Initialise Reticulum configuration
if RNS.vendor.platformutils.get_platform() == "android":
try: