Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 2507

Parental Control

$
0
0

I apologize if this has been discussed somewhere, but with serch, I did not find such a topic.

 

I do not have the original openpli enigma, but as far as I understand in original is the same.

 

When you first time open the Parental control be visible only choice: "Change PIN".

It is misleading to many users. They think that parental control does not work.

Maybe it would be better, if parental control not enabled, display choice: "Enable parental control".
Something like this:

--- a/lib/python/Screens/ParentalControlSetup.py
+++ b/lib/python/Screens/ParentalControlSetup.py
@@ -65,9 +65,12 @@ class ParentalControlSetup(Screen, ConfigListScreen, ProtectedScreen):
   self.changePin = None
   self.reloadLists = None
   self.list = []
-  self.changePin = getConfigListEntry(_("Change PIN"), NoSave(ConfigNothing()))
-  self.list.append(self.changePin)
-  if config.ParentalControl.servicepin[0].value:
+  if not config.ParentalControl.servicepin[0].value:
+   self.changePin = getConfigListEntry(_("Enable parental control"), NoSave(ConfigNothing()))
+   self.list.append(self.changePin)
+  else:
+   self.changePin = getConfigListEntry(_("Change PIN"), NoSave(ConfigNothing()))
+   self.list.append(self.changePin)
    self.list.append(getConfigListEntry(_("Protect services"), config.ParentalControl.servicepinactive))
    if config.ParentalControl.servicepinactive.value:
     self.list.append(getConfigListEntry(_("Remember service PIN"), config.ParentalControl.storeservicepin))

Attached Files


Viewing all articles
Browse latest Browse all 2507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>