In my opinion it is extremely bad idea - put StateSaver in delegate. Try to rewrite your code in better way.
BR, Roman. 2014-02-16 16:57 GMT+04:00 Sam Bull <[email protected]>: > Is there any tips on using a StateSaver? > > I just want to store a boolean state for a list of languages. I am > currently doing this by using a StateSaver on a delegate's checked > attribute. > > But now the app often becomes unresponsive for about 5 seconds when it > launches, and always hangs for about 5 seconds when closing the app, > maxing out the CPU in this time. > > Is there a better way to save this information? > > You can look at the code here, the StateSaver is at the bottom in the > delegate: > > http://bazaar.launchpad.net/~dreamsorcerer/eo-dict-app/trunk/view/head:/qml/SettingsPage.qml > > -- > Mailing list: https://launchpad.net/~ubuntu-phone > Post to : [email protected] > Unsubscribe : https://launchpad.net/~ubuntu-phone > More help : https://help.launchpad.net/ListHelp > >
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

