Can't add components (e.g. dialogs!) in init method
Brought to you by:
bajzat
If you call the Thinlet.add method to add further
components to the desktop (e.g. a dialog) from the init
method then it won't appear. This is a rather nasty
problem because one is expected to initialize the GUI
(i.e. to fill it with some live data) in the init
method. Now how do you report errors during the
initialization? E.g. if you load some data from disk or
try to access an external device to load the initial
GUI contents this will be a problem.
Logged In: YES
user_id=363014
OK, I was too tired yesterday :). So this bug (or
'undocumented feature') doesn't stop you from initializing
your application with data, but you should better not do it
from the 'init' callback of your component. (It can be done
after the loading of the UI has finished.) Anyway it should
be clearly stated in the documentation that this issue
exists: you can't add new components to the desktop/thinlet
from the init callback method.