Advanced config info

This commit is contained in:
Mark Qvist 2024-12-11 02:19:07 +01:00
parent 443c8938be
commit cc1e42cc66
1 changed files with 12 additions and 7 deletions

View File

@ -133,17 +133,22 @@ class Utilities():
self.update_advanced() self.update_advanced()
def update_advanced(self, sender=None): def update_advanced(self, sender=None):
ct = self.app.sideband.config["config_template"] if RNS.vendor.platformutils.is_android():
self.advanced_screen.ids.config_template.text = f"[font=RobotoMono-Regular][size={int(dp(12))}]{ct}[/size][/font]" ct = self.app.sideband.config["config_template"]
self.advanced_screen.ids.config_template.text = f"[font=RobotoMono-Regular][size={int(dp(12))}]{ct}[/size][/font]"
else:
self.advanced_screen.ids.config_template.text = f"[font=RobotoMono-Regular][size={int(dp(12))}]On this platform, Reticulum configuration is managed by the system. You can change the configuration by editing the file located at:\n\n{self.app.sideband.reticulum.configpath}[/size][/font]"
def copy_config(self, sender=None): def copy_config(self, sender=None):
Clipboard.copy(self.app.sideband.config_template) if RNS.vendor.platformutils.is_android():
Clipboard.copy(self.app.sideband.config_template)
def paste_config(self, sender=None): def paste_config(self, sender=None):
self.app.sideband.config_template = Clipboard.paste() if RNS.vendor.platformutils.is_android():
self.app.sideband.config["config_template"] = self.app.sideband.config_template self.app.sideband.config_template = Clipboard.paste()
self.app.sideband.save_configuration() self.app.sideband.config["config_template"] = self.app.sideband.config_template
self.update_advanced() self.app.sideband.save_configuration()
self.update_advanced()
### Log viewer screen ### Log viewer screen
###################################### ######################################