save and restore works again
This commit is contained in:
parent
05bf0d344c
commit
8ea0de9892
@ -55,16 +55,16 @@ Rectangle {
|
||||
//BEGIN functions
|
||||
function saveConfig() {
|
||||
for (var key in plasmoid.configuration) {
|
||||
if (main.item["cfg_"+key] !== undefined) {
|
||||
plasmoid.configuration[key] = main.item["cfg_"+key]
|
||||
if (main.currentPage["cfg_"+key] !== undefined) {
|
||||
plasmoid.configuration[key] = main.currentPage["cfg_"+key]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function restoreConfig() {
|
||||
for (var key in plasmoid.configuration) {
|
||||
if (main.item["cfg_"+key] !== undefined) {
|
||||
main.item["cfg_"+key] = plasmoid.configuration[key]
|
||||
if (main.currentPage["cfg_"+key] !== undefined) {
|
||||
main.currentPage["cfg_"+key] = plasmoid.configuration[key]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user