From 325a028af44593f6a2ad01ea11be93304191393d Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 8 May 2026 17:00:15 +0200 Subject: [PATCH] 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 --- apps/plugins/properties.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 4eb727b7bb..fc251e4900 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -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