Browse Source

fix for new sessions

tags/v0.3.0
Nils 2 months ago
parent
commit
adb1b46311
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/nsm-data

+ 2
- 1
tools/nsm-data View File

@@ -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""")

Loading…
Cancel
Save