mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
Allow locking without pin using Up menu on desktop
This commit is contained in:
parent
ab669b26da
commit
6271409e5a
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue