[FL-1606] Hide "Unlocked" message on any user interaction #599
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		@@ -114,15 +114,8 @@ bool dolphin_view_idle_main_input(InputEvent* event, void* context) {
 | 
				
			|||||||
    // unlocked
 | 
					    // unlocked
 | 
				
			||||||
    if(!dolphin->locked) {
 | 
					    if(!dolphin->locked) {
 | 
				
			||||||
        if(event->key == InputKeyOk && event->type == InputTypeShort) {
 | 
					        if(event->key == InputKeyOk && event->type == InputTypeShort) {
 | 
				
			||||||
            with_view_model(
 | 
					 | 
				
			||||||
                dolphin->idle_view_main, (DolphinViewMainModel * model) {
 | 
					 | 
				
			||||||
                    model->hint_timeout = 0; // clear hint timeout
 | 
					 | 
				
			||||||
                    return true;
 | 
					 | 
				
			||||||
                });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            with_value_mutex(
 | 
					            with_value_mutex(
 | 
				
			||||||
                dolphin->menu_vm, (Menu * menu) { menu_ok(menu); });
 | 
					                dolphin->menu_vm, (Menu * menu) { menu_ok(menu); });
 | 
				
			||||||
 | 
					 | 
				
			||||||
        } else if(event->key == InputKeyUp && event->type == InputTypeShort) {
 | 
					        } else if(event->key == InputKeyUp && event->type == InputTypeShort) {
 | 
				
			||||||
            osTimerStart(dolphin->timeout_timer, 40);
 | 
					            osTimerStart(dolphin->timeout_timer, 40);
 | 
				
			||||||
            view_dispatcher_switch_to_view(dolphin->idle_view_dispatcher, DolphinViewLockMenu);
 | 
					            view_dispatcher_switch_to_view(dolphin->idle_view_dispatcher, DolphinViewLockMenu);
 | 
				
			||||||
@@ -139,6 +132,13 @@ bool dolphin_view_idle_main_input(InputEvent* event, void* context) {
 | 
				
			|||||||
        } else if(event->key == InputKeyBack && event->type == InputTypeShort) {
 | 
					        } else if(event->key == InputKeyBack && event->type == InputTypeShort) {
 | 
				
			||||||
            view_dispatcher_switch_to_view(dolphin->idle_view_dispatcher, DolphinViewIdleMain);
 | 
					            view_dispatcher_switch_to_view(dolphin->idle_view_dispatcher, DolphinViewIdleMain);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        with_view_model(
 | 
				
			||||||
 | 
					            dolphin->idle_view_main, (DolphinViewMainModel * model) {
 | 
				
			||||||
 | 
					                model->hint_timeout = 0; // clear hint timeout
 | 
				
			||||||
 | 
					                return true;
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        // locked
 | 
					        // locked
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user