mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 15:58:36 -07:00
Fix cycle anims setting
This commit is contained in:
@@ -197,8 +197,8 @@ static void animation_manager_start_new_idle(AnimationManager* animation_manager
|
||||
|
||||
StorageAnimation* new_animation = animation_manager_select_idle_animation(animation_manager);
|
||||
animation_manager_replace_current_animation(animation_manager, new_animation);
|
||||
const BubbleAnimation* bubble_animation =
|
||||
animation_storage_get_bubble_animation(animation_manager->current_animation);
|
||||
// const BubbleAnimation* bubble_animation =
|
||||
// animation_storage_get_bubble_animation(animation_manager->current_animation);
|
||||
animation_manager->state = AnimationManagerStateIdle;
|
||||
DesktopSettings* settings = malloc(sizeof(DesktopSettings));
|
||||
DESKTOP_SETTINGS_LOAD(settings);
|
||||
@@ -511,8 +511,8 @@ void animation_manager_load_and_continue_animation(AnimationManager* animation_m
|
||||
animation_manager->idle_animation_timer,
|
||||
animation_manager->freezed_animation_time_left);
|
||||
} else {
|
||||
const BubbleAnimation* animation = animation_storage_get_bubble_animation(
|
||||
animation_manager->current_animation);
|
||||
// const BubbleAnimation* animation = animation_storage_get_bubble_animation(
|
||||
// animation_manager->current_animation);
|
||||
DesktopSettings* settings = malloc(sizeof(DesktopSettings));
|
||||
DESKTOP_SETTINGS_LOAD(settings);
|
||||
furi_timer_start(
|
||||
|
||||
@@ -324,6 +324,7 @@ int32_t desktop_srv(void* p) {
|
||||
|
||||
if(!desktop->settings.cycle_animations_s) {
|
||||
desktop->settings.cycle_animations_s = 3601;
|
||||
DESKTOP_SETTINGS_SAVE(&desktop->settings);
|
||||
}
|
||||
|
||||
desktop_main_set_sfw_mode_state(desktop->main_view, desktop->settings.sfw_mode);
|
||||
|
||||
@@ -64,5 +64,5 @@ typedef struct {
|
||||
uint8_t displayBatteryPercentage;
|
||||
bool is_sfwmode;
|
||||
uint8_t sfw_mode;
|
||||
uint8_t cycle_animations_s;
|
||||
uint32_t cycle_animations_s;
|
||||
} DesktopSettings;
|
||||
|
||||
Reference in New Issue
Block a user