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 * Use updateAllOnlinePluginsAndLoadThem
* */ * */
fun loadAllOnlinePlugins(activity: Activity) { fun loadAllOnlinePlugins(activity: Activity) {
File(activity.filesDir, ONLINE_PLUGINS_FOLDER).listFiles()?.sortedBy { it.name } // Load all plugins as fast as possible!
?.apmap { file -> (getPluginsOnline()).toList().apmap { pluginData ->
maybeLoadPlugin(activity, file) loadPlugin(
activity,
File(pluginData.filePath),
pluginData
)
} }
} }