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