plugins: disktidy: use UI viewport, limit UI updates

- Show stats when finished
- Keep stats on screen until Cancel or Menu
  button is pressed
- Limiting progress updates to 10fps results
  in a big speedup

Change-Id: Iebffaead6e1212306edaa42aad925458d13a5f82
This commit is contained in:
Christian Soffke 2025-06-04 12:51:53 +02:00 committed by Solomon Peachy
parent e3fb41919d
commit 2bf929c7ae
3 changed files with 65 additions and 43 deletions

View file

@ -862,7 +862,8 @@ int plugin_load(const char* plugin, const void* parameter)
/* for some plugins, the SBS can be left enabled */
const char *sepch = strrchr(plugin, PATH_SEPCH);
bool theme_enabled = sepch && (!strcmp("properties.rock", sepch + 1) ||
!strcmp("main_menu_config.rock", sepch + 1));
!strcmp("main_menu_config.rock", sepch + 1) ||
!strcmp("disktidy.rock", sepch + 1));
if (current_plugin_handle)
{