1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Christian Soffke 2022-10-10 03:28:40 +02:00
parent d520dcbfbb
commit 0e2e9df991

View file

@ -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);