Match event names to gui text

This commit is contained in:
Willy-JL
2023-08-29 01:59:54 +02:00
parent d7aa3ea60f
commit d2baf3935e
3 changed files with 6 additions and 6 deletions

View File

@@ -81,12 +81,12 @@ bool desktop_scene_lock_menu_on_event(void* context, SceneManagerEvent event) {
furi_record_close(RECORD_LOADER);
consumed = true;
break;
case DesktopLockMenuEventLock:
case DesktopLockMenuEventLockKeypad:
desktop_scene_lock_menu_save_settings(desktop);
desktop_lock(desktop, false);
consumed = true;
break;
case DesktopLockMenuEventLockPin:
case DesktopLockMenuEventLockPinCode:
desktop_scene_lock_menu_save_settings(desktop);
if(desktop_pin_is_valid(&desktop->settings.pin_code)) {
desktop_lock(desktop, true);

View File

@@ -34,7 +34,7 @@ typedef enum {
DesktopDebugEventSaveState,
DesktopDebugEventExit,
DesktopLockMenuEventLockPin,
DesktopLockMenuEventLockPinCode,
_DesktopLockMenuEventDummyModeOn,
_DesktopLockMenuEventDummyModeOff,
DesktopLockMenuEventStealthModeOn,
@@ -55,7 +55,7 @@ typedef enum {
DesktopMainEventLockKeypad,
DesktopLockedEventOpenPowerOff,
DesktopLockMenuEventSettings,
DesktopLockMenuEventLock,
DesktopLockMenuEventLockKeypad,
DesktopLockMenuEventLockPinOff,
DesktopLockMenuEventXtreme,
} DesktopEvent;

View File

@@ -259,10 +259,10 @@ bool desktop_lock_menu_input_callback(InputEvent* event, void* context) {
if(event->key == InputKeyOk && event->type == InputTypeShort) {
switch(pin_lock) {
case 0:
desktop_event = DesktopLockMenuEventLock;
desktop_event = DesktopLockMenuEventLockKeypad;
break;
case 1:
desktop_event = DesktopLockMenuEventLockPin;
desktop_event = DesktopLockMenuEventLockPinCode;
break;
case 2:
desktop_event = DesktopLockMenuEventLockPinOff;