View Single Post
Old 03-07-2012, 05:00 AM   #3510
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
quisvir:

I finally managed to produce a new option-menue in PRS-settings. Working so far.
One setting is not just an action (most of them are actions; with minor glitches...) but an OPTION (which toggles battery-symbol visibility).
I do this with a SWITCH-function
Code:
....
BATTERY_LEVEL.show(true);
break;
...
I call the option with
Code:
onSettingsChanged: function (propertyName, oldValue, newValue, object) 
{
switch (propertyName) 
{
case 'ON':
saveData (newValue) ;
break;
...
Problem is:
The option resets every new start of the reader and looses its settings. How to store the option-values? I tried a couple of things, have had a look of course in other JS-files but no chance so far.

Thanks!

Last edited by Analogus; 03-07-2012 at 05:04 AM.
Analogus is offline   Reply With Quote