Draft: add Parental Control toggle to settings view
1 unresolved thread
1 unresolved thread
Description
This MR adds a "Parental Control" toggle to the settings view. When activated, files cannot be deleted or playlists modified without entering the pin.
Changes Made
- Added a new
SettingsItem
of type.toggle
to the main settings section. - Defined the
kVLCSettingEnableKidsMode
constant inVLCConstants.h
. - Added translations for the toggle text and subtitle in
Root.strings
(English and Brazilian Portuguese). - Created new function 'authenticateUser' in 'EditActions'
- Called function 'authenticateUser' in 'defete' functions in 'EditActions'
Edited by Arthur Norat
Merge request reports
Activity
Filter activity
thanks for the feedback! even though it's not yet ready for merge, at least I seem to be on the right track.
for now, I plan to find the point in the code responsible for deleting media and use UserDefaults to check if the kids mode is on. if it is, it will call a function that asks for the password.
let me know if you think this not the best way
added 1 commit
- 24abd0de - Update toggle from Kids Mode to Parental Control and requires PIN to delete media and playlist item
added 9 commits
-
24abd0de...db273614 - 7 commits from branch
videolan:master
- 97052a8b - Add kids mode toggle to settings view
- ff83a3b3 - Update toggle from Kids Mode to Parental Control and requires PIN to delete media and playlist item
-
24abd0de...db273614 - 7 commits from branch