From 4ebf2edf32f3c0ecdff9eed7eda295cf185522c6 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Wed, 4 Jun 2025 12:43:48 +0200 Subject: [PATCH] plugins: pictureflow: fix backlight setting requires restart Change-Id: I6a2f0fe1ab3909ab831f89f92988d82b5a7c9b14 --- apps/plugins/pictureflow/pictureflow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index c50725d30f..fdc4958f4c 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c @@ -3552,6 +3552,10 @@ static int display_settings_menu(void) case 0: rb->set_option(rb->str(LANG_BACKLIGHT), &pf_cfg.backlight_mode, RB_INT, backlight_options, 2, NULL); + if(pf_cfg.backlight_mode == 0) + backlight_ignore_timeout(); + else + backlight_use_settings(); break; case 1: old_val = pf_cfg.show_fps; @@ -4485,10 +4489,8 @@ static bool init(void) config_set_defaults(&pf_cfg); /* must appear before configfile_save */ configfile_load(CONFIG_FILE, config, CONFIG_NUM_ITEMS, CONFIG_VERSION); -#ifdef HAVE_BACKLIGHT if(pf_cfg.backlight_mode == 0) backlight_ignore_timeout(); /* restore in cleanup */ -#endif #if PF_PLAYBACK_CAPABLE buf = rb->plugin_get_buffer(&buf_size);