update loadAllOnlinePlugins

This commit is contained in:
Blatzar 2022-08-25 13:48:55 +02:00
parent 7a6d16d2c1
commit 241cc92e84

View file

@ -248,9 +248,13 @@ object PluginManager {
* Use updateAllOnlinePluginsAndLoadThem
* */
fun loadAllOnlinePlugins(activity: Activity) {
File(activity.filesDir, ONLINE_PLUGINS_FOLDER).listFiles()?.sortedBy { it.name }
?.apmap { file ->
maybeLoadPlugin(activity, file)
// Load all plugins as fast as possible!
(getPluginsOnline()).toList().apmap { pluginData ->
loadPlugin(
activity,
File(pluginData.filePath),
pluginData
)
}
}