This commit is contained in:
reduplicated 2022-08-21 04:22:24 +02:00
parent 34cbcd8311
commit f462e1896b

View file

@ -164,8 +164,9 @@ object PluginManager {
var allCurrentOutDatedPlugins: Set<OnlinePluginData> = emptySet()
suspend fun loadSinglePlugin(activity: Activity, apiName: String) : Boolean {
return getPluginsOnline().firstOrNull { it.internalName == apiName }?.let { savedData ->
suspend fun loadSinglePlugin(activity: Activity, apiName: String): Boolean {
return (getPluginsOnline().firstOrNull { it.internalName == apiName }
?: getPluginsLocal().firstOrNull { it.internalName == apiName })?.let { savedData ->
// OnlinePluginData(savedData, onlineData)
loadPlugin(
activity,