Hi all,<div><br></div><div>I'm developing a desktop and a panel containment, and I'm stuck with a problem i really don't know how to solve:</div><div>I need to create an object on the startup of the containment that will be restored the next time plasma starts. So I can reimplement Containment::restore or Containment::restoreContents. I can check if the config of the object is saved otherwise I construct a default one.</div>
<div>The problem is that when creating a new panel restore isn't called, so it doesn't create the object.</div><div>I thought of creating the default one when receiving the StartupCompletedConstraints, but when changing the desktop activity to my containment it receives that before restore, so if I had previously swapped from my own containment to the default one it will first create the default one and then restore the previously saved object, resulting in one useless object.</div>
<div>I tried by reading the config entry I save in config() regarding my object, but in init() or when receiving StartupCompletedConstraint there are only the entries of the previous containment.</div><div><br></div><div>
I'd need a method or a signal *always called* and called *always after* restore, but i couldn't find any.</div><div>Do you have any hint? Should it be added to Containment?</div><div><br></div><div>Greets, Giulio</div>