save and restore works again
This commit is contained in:
parent
05bf0d344c
commit
8ea0de9892
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user