From 79e4f6300d40e94dda2e27b59977ec4c24c97c16 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Fri, 26 Jun 2020 21:14:07 +0200 Subject: [PATCH] Start newly added applications hidden under session management. Aftewards they save their visibility status --- template/engine/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/engine/session.py b/template/engine/session.py index 585da0b..d3e6db8 100644 --- a/template/engine/session.py +++ b/template/engine/session.py @@ -44,7 +44,7 @@ class Session(object): def __init__(self): self.sessionPrefix = "" #set in nsm_openOrNewCallback. If we want to save and load resources they need to be in the session dir. We never load from outside, the scheme is always "import first, load local file" self.absoluteJsonFilePath = "" #set in nsm_openOrNewCallback. Makes it possible to save a file manually. Even in script mode or debug mode. - self.guiWasSavedAsNSMVisible = True #set by nsm_openOrNewCallback, but without a save file we start with an initially visible GUI + self.guiWasSavedAsNSMVisible = False #set by nsm_openOrNewCallback, but without a save file we start with an initially hidden GUI self.nsmClient = None #We get it from api.startEngine which gets it from the GUI. nsmClient.reactToMessage is added to the global event loop there. self.history = History() #Undo and Redo. Works through the api but is saved in the session. Not saved in the save file. self.guiSharedDataToSave = {} #the gui can write its values here directly to get them saved and restored on startup. We opt not to use the Qt config save to keep everything in one file.