Allow locking without pin using Up menu on desktop

This commit is contained in:
MX 2023-04-25 02:09:29 +03:00
parent ab669b26da
commit 6271409e5a
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -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) {