Desktop: use right button to open passport (#1127)

This commit is contained in:
あく
2022-04-18 15:34:18 +03:00
committed by GitHub
parent d993c1f98e
commit 703844dd69
5 changed files with 16 additions and 6 deletions

View File

@@ -161,8 +161,9 @@ void animation_manager_new_idle_process(AnimationManager* animation_manager) {
}
/* reaction to animation_manager->interact_callback() */
void animation_manager_interact_process(AnimationManager* animation_manager) {
bool animation_manager_interact_process(AnimationManager* animation_manager) {
furi_assert(animation_manager);
bool consumed = true;
if(animation_manager->levelup_pending) {
animation_manager->levelup_pending = false;
@@ -181,7 +182,11 @@ void animation_manager_interact_process(AnimationManager* animation_manager) {
if(!blocked) {
animation_manager_start_new_idle(animation_manager);
}
} else {
consumed = false;
}
return consumed;
}
static void animation_manager_start_new_idle(AnimationManager* animation_manager) {

View File

@@ -130,8 +130,9 @@ void animation_manager_set_interact_callback(
* set_new_idle_callback's call.
*
* @animation_manager instance
* @return true if event was consumed
*/
void animation_manager_interact_process(AnimationManager* animation_manager);
bool animation_manager_interact_process(AnimationManager* animation_manager);
/** Check if animation loaded
*