save and restore works again

This commit is contained in:
Marco Martin 2013-02-27 13:33:01 +01:00
parent 05bf0d344c
commit 8ea0de9892

View File

@ -55,16 +55,16 @@ Rectangle {
//BEGIN functions //BEGIN functions
function saveConfig() { function saveConfig() {
for (var key in plasmoid.configuration) { for (var key in plasmoid.configuration) {
if (main.item["cfg_"+key] !== undefined) { if (main.currentPage["cfg_"+key] !== undefined) {
plasmoid.configuration[key] = main.item["cfg_"+key] plasmoid.configuration[key] = main.currentPage["cfg_"+key]
} }
} }
} }
function restoreConfig() { function restoreConfig() {
for (var key in plasmoid.configuration) { for (var key in plasmoid.configuration) {
if (main.item["cfg_"+key] !== undefined) { if (main.currentPage["cfg_"+key] !== undefined) {
main.item["cfg_"+key] = plasmoid.configuration[key] main.currentPage["cfg_"+key] = plasmoid.configuration[key]
} }
} }
} }