summaryrefslogtreecommitdiff
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-07-26 23:25:23 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-07-30 22:08:18 +0200
commit2f8cab91903fd14f475a40be7c819585568fa5ef (patch)
treeb31218f961d8938c091fdf72aaaa34e6ed74cba1 /apps/plugins/properties.c
parentcb7ae38fcd051b95fcc6513f91e861902ead76a7 (diff)
downloadrockbox-2f8cab91903fd14f475a40be7c819585568fa5ef.tar.gz
rockbox-2f8cab91903fd14f475a40be7c819585568fa5ef.zip
plugins: properties: keep theme enabled
Launching a themed plugin can cause the screen to flash due to the theme being disabled, before it is re-enabled right away. For the Properties plugin in particular, this seems a bit annoying and unnecessary. Change-Id: Ifa0275b453369051cc63a3c626551f54120fdb41
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r--apps/plugins/properties.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index d3fac59bde..dcd3d89edf 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -321,8 +321,6 @@ enum plugin_status plugin_start(const void* parameter)
321 rb->action_userabort(TIMEOUT_BLOCK); 321 rb->action_userabort(TIMEOUT_BLOCK);
322 return PLUGIN_OK; 322 return PLUGIN_OK;
323 } 323 }
324 FOR_NB_SCREENS(i)
325 rb->viewportmanager_theme_enable(i, true, NULL);
326 324
327 if (props_type == PROPS_MUL_ID3) 325 if (props_type == PROPS_MUL_ID3)
328 ret = assemble_track_info(NULL, NULL); 326 ret = assemble_track_info(NULL, NULL);
@@ -349,8 +347,5 @@ enum plugin_status plugin_start(const void* parameter)
349 rb->browse_id3(&id3, 0, 0, NULL, mul_id3_count) : 347 rb->browse_id3(&id3, 0, 0, NULL, mul_id3_count) :
350 (stats.canceled ? 0 : -1); 348 (stats.canceled ? 0 : -1);
351 349
352 FOR_NB_SCREENS(i)
353 rb->viewportmanager_theme_undo(i, false);
354
355 return ret == -1 ? PLUGIN_ERROR : ret == 1 ? PLUGIN_USB_CONNECTED : PLUGIN_OK; 350 return ret == -1 ? PLUGIN_ERROR : ret == 1 ? PLUGIN_USB_CONNECTED : PLUGIN_OK;
356} 351}