Browse Source

Start newly added applications hidden under session management. Aftewards they save their visibility status

master
Nils 4 years ago
parent
commit
79e4f6300d
  1. 2
      template/engine/session.py

2
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.

Loading…
Cancel
Save