plasma-framework/scriptengines/javascript/tests/javascript-config-test/contents/code/main.js

14 lines
372 B
JavaScript
Raw Normal View History

plasmoid.configChanged = function()
{
plasmoid.activeConfig = "main";
print("Configuration changed: " + plasmoid.readConfig("Test"));
}
print(plasmoid.readConfig("Test"));
plasmoid.activeConfig = "secondary";
print(plasmoid.activeConfig);
print(plasmoid.readConfig("Test"));
plasmoid.writeConfig("Test", "A different text!");
print(plasmoid.readConfig("Test"));