mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-27 15:22:29 +03:00
Allow locking without pin using Up menu on desktop
This commit is contained in:
parent
ab669b26da
commit
6271409e5a
@ -137,9 +137,9 @@ bool desktop_lock_menu_input_callback(InputEvent* event, void* context) {
|
||||
|
||||
if(event->key == InputKeyOk) {
|
||||
if((idx == DesktopLockMenuIndexLock)) {
|
||||
if((pin_is_set) && (event->type == InputTypeShort)) {
|
||||
if((pin_is_set) && (event->type == InputTypeLong)) {
|
||||
lock_menu->callback(DesktopLockMenuEventPinLock, lock_menu->context);
|
||||
} else if((pin_is_set == false) && (event->type == InputTypeShort)) {
|
||||
} else if(event->type == InputTypeShort) {
|
||||
lock_menu->callback(DesktopLockMenuEventLock, lock_menu->context);
|
||||
}
|
||||
} else if(idx == DesktopLockMenuIndexStealth) {
|
||||
|
Loading…
Reference in New Issue
Block a user