From adb1b46311f3f67499441e32bd82061e4c520219 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sun, 11 Jul 2021 16:40:27 +0200 Subject: [PATCH] fix for new sessions --- tools/nsm-data | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/nsm-data b/tools/nsm-data index 2a7f327..0453d1a 100755 --- a/tools/nsm-data +++ b/tools/nsm-data @@ -286,7 +286,7 @@ class DataClient(object): self.data["timelineMaximumDuration"] = 5 #5 minutes as sensible default else: - self.data = {"clientOverrideNames":{}, "description":"", " timelineMaximumDuration":5} #5 minutes as sensible default + self.data = {"clientOverrideNames":{}, "description":"", "timelineMaximumDuration":5} #5 minutes as sensible default logger.info("New/Open complete") #Data is not send here. Instead the gui calls the getAll message later. @@ -306,6 +306,7 @@ class DataClient(object): return result else: logger.error(f"""{absoluteJsonFilePath} was saved with {result["version"]} but we need {VERSION}""") + #self.nsmClient.setLabel... We cannot use nsm client here because at this point we are still in the open/new callback. and self.nsmClient does not exist yet. sysexit() else: logger.error(f"""Error. {absoluteJsonFilePath} not loaded. Not a sane agordejo/nsm-data file in json format""")