add support for Favorite App Ok Long

This commit is contained in:
DrEverr
2025-04-01 18:39:42 +02:00
parent 7f135dae03
commit f783e0b3ab
5 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -182,6 +182,7 @@ void desktop_settings_scene_start_on_enter(void* context) {
variable_item_list_add(variable_item_list, "Favorite App - Left Long", 1, NULL, NULL); variable_item_list_add(variable_item_list, "Favorite App - Left Long", 1, NULL, NULL);
variable_item_list_add(variable_item_list, "Favorite App - Right Short", 1, NULL, NULL); variable_item_list_add(variable_item_list, "Favorite App - Right Short", 1, NULL, NULL);
variable_item_list_add(variable_item_list, "Favorite App - Right Long", 1, NULL, NULL); variable_item_list_add(variable_item_list, "Favorite App - Right Long", 1, NULL, NULL);
variable_item_list_add(variable_item_list, "Favorite App - Ok Long", 1, NULL, NULL);
variable_item_list_add(variable_item_list, "DummyMode - Left", 1, NULL, NULL); variable_item_list_add(variable_item_list, "DummyMode - Left", 1, NULL, NULL);
variable_item_list_add(variable_item_list, "DummyMode - Left Long", 1, NULL, NULL); variable_item_list_add(variable_item_list, "DummyMode - Left Long", 1, NULL, NULL);