Implemented key export and import

This commit is contained in:
Mark Qvist 2022-09-17 22:55:27 +02:00
parent 23a2a95784
commit 0b5963bb9e
3 changed files with 239 additions and 54 deletions

View file

@ -86,11 +86,14 @@ class SidebandCore():
self.db_path = self.app_dir+"/app_storage/sideband.db"
self.lxmf_storage = self.app_dir+"/app_storage/"
self.first_run = True
try:
if not os.path.isfile(self.config_path):
self.__init_config()
else:
self.__load_config()
self.first_run = False
except Exception as e:
RNS.log("Error while configuring Sideband: "+str(e), RNS.LOG_ERROR)