From 0e2e9df99111708b65df02ddd6987a47b0f9a4ed Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 10 Oct 2022 03:28:40 +0200 Subject: [PATCH] Plugins: Eliminate 'Loading' splash unless disk is inactive My impression is that the waiting time for plugins is only ever significant if a disk needs to spin up. In other cases, the experience seems nicer without a 'Loading' splash, especially for often-used plugins, such as 'Properties', when it is launched from the Database or from the File Browser. Change-Id: I018ccb13466fa618ef089b6dc7714db38cffd9b6 --- apps/plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index b8897c95ee..2be6e10308 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -847,7 +847,10 @@ int plugin_load(const char* plugin, const void* parameter) plugin_buffer_handle = core_free(plugin_buffer_handle); } - splash(0, ID2P(LANG_WAIT)); +#ifdef HAVE_DISK_STORAGE + if (!storage_disk_is_active()) + splash(0, ID2P(LANG_WAIT)); +#endif strcpy(current_plugin, plugin); current_plugin_handle = lc_open(plugin, pluginbuf, PLUGIN_BUFFER_SIZE);