mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 20:08:36 -07:00
Autolock with pin code
This commit is contained in:
@@ -62,6 +62,9 @@ static bool desktop_custom_event_callback(void* context, uint32_t event) {
|
|||||||
return true;
|
return true;
|
||||||
case DesktopGlobalAutoLock:
|
case DesktopGlobalAutoLock:
|
||||||
if(!loader_is_locked(desktop->loader)) {
|
if(!loader_is_locked(desktop->loader)) {
|
||||||
|
if(desktop->settings.pin_code.length > 0) {
|
||||||
|
desktop_pin_lock(&desktop->settings);
|
||||||
|
}
|
||||||
desktop_lock(desktop);
|
desktop_lock(desktop);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user