diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2022-10-10 03:28:40 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2022-12-13 20:52:09 -0500 |
commit | 0e2e9df99111708b65df02ddd6987a47b0f9a4ed (patch) | |
tree | c06145b906ebd28b6c8d4275eb511d43ced251f8 | |
parent | d520dcbfbb41e816b50085556a1f447b3a22da79 (diff) | |
download | rockbox-0e2e9df991.tar.gz rockbox-0e2e9df991.zip |
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
-rw-r--r-- | apps/plugin.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |