plugins: properties: clear UI viewport at startup

Otherwise, with themes that adjust the viewport
for the current activity, the background behind
the progress bar may look glitchy while
scanning items, until the list is displayed

Change-Id: I27a207b37c3209eae9bc61e1fd0862fb5872be57
This commit is contained in:
Christian Soffke 2026-05-08 17:00:15 +02:00
parent ae871d25a9
commit 325a028af4

View file

@ -329,6 +329,15 @@ enum plugin_status plugin_start(const void* parameter)
{
static struct dir_stats stats;
const char *file = parameter;
static struct viewport ui_vp;
/* clear UI vp */
struct screen* display = rb->screens[SCREEN_MAIN];
rb->viewport_set_defaults(&ui_vp, SCREEN_MAIN);
struct viewport *last_vp = display->set_viewport(&ui_vp);
display->clear_viewport();
display->set_viewport(last_vp);
#ifdef HAVE_TOUCHSCREEN
rb->touchscreen_set_mode(rb->global_settings->touch_mode);
#endif