mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
Merge pull request #886 from DrEverr/fav-app-ok-long
add support for Favorite App - Ok Long
This commit is contained in:
@@ -14,6 +14,7 @@ typedef enum {
|
||||
FavoriteAppLeftLong,
|
||||
FavoriteAppRightShort,
|
||||
FavoriteAppRightLong,
|
||||
FavoriteAppOkLong,
|
||||
|
||||
FavoriteAppNumber,
|
||||
} FavoriteAppShortcut;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -8,6 +8,7 @@ typedef enum {
|
||||
DesktopMainEventOpenFavoriteLeftLong,
|
||||
DesktopMainEventOpenFavoriteRightShort,
|
||||
DesktopMainEventOpenFavoriteRightLong,
|
||||
DesktopMainEventOpenFavoriteOkLong,
|
||||
DesktopMainEventOpenMenu,
|
||||
DesktopMainEventOpenDebug,
|
||||
DesktopMainEventOpenPowerOff,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user