Fix cycle anims setting

This commit is contained in:
Willy-JL
2023-01-16 20:16:38 +00:00
parent f2c1921638
commit 2566106a56
3 changed files with 6 additions and 5 deletions

View File

@@ -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(

View File

@@ -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);

View File

@@ -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;