瀏覽代碼

fix for new sessions

master
Nils 3 年前
父節點
當前提交
adb1b46311
  1. 3
      tools/nsm-data

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

載入中…
取消
儲存