Merge pull request #886 from DrEverr/fav-app-ok-long

add support for Favorite App - Ok Long
This commit is contained in:
MMX
2025-04-10 03:06:53 +03:00
committed by GitHub
5 changed files with 17 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ typedef enum {
FavoriteAppLeftLong,
FavoriteAppRightShort,
FavoriteAppRightLong,
FavoriteAppOkLong,
FavoriteAppNumber,
} FavoriteAppShortcut;

View File

@@ -174,6 +174,11 @@ bool desktop_scene_main_on_event(void* context, SceneManagerEvent event) {
desktop, &desktop->settings.favorite_apps[FavoriteAppRightLong]);
consumed = true;
break;
case DesktopMainEventOpenFavoriteOkLong:
desktop_scene_main_start_favorite(
desktop, &desktop->settings.favorite_apps[FavoriteAppOkLong]);
consumed = true;
break;
case DesktopAnimationEventCheckAnimation:
animation_manager_check_blocking_process(desktop->animation_manager);

View File

@@ -8,6 +8,7 @@ typedef enum {
DesktopMainEventOpenFavoriteLeftLong,
DesktopMainEventOpenFavoriteRightShort,
DesktopMainEventOpenFavoriteRightLong,
DesktopMainEventOpenFavoriteOkLong,
DesktopMainEventOpenMenu,
DesktopMainEventOpenDebug,
DesktopMainEventOpenPowerOff,

View File

@@ -74,6 +74,7 @@ bool desktop_main_input_callback(InputEvent* event, void* context) {
if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) {
main_view->callback(DesktopAnimationEventNewIdleAnimation, main_view->context);
}
main_view->callback(DesktopMainEventOpenFavoriteOkLong, main_view->context);
}
}
} else {