mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Match event names to gui text
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user