Browse Source

Skip plugin update if current version is greater than remote version.

tags/v2.1.2
Andrew Belt 2 years ago
parent
commit
9f49de8776
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/library.cpp

+ 6
- 2
src/library.cpp View File

@@ -249,8 +249,12 @@ void checkUpdates() {

// Check if update is needed
plugin::Plugin* p = plugin::getPlugin(pluginSlug);
if (p && p->version == update.version)
continue;
if (p) {
if (update.version == p->version)
continue;
if (string::Version(update.version) < string::Version(p->version))
continue;
}

// Require that plugin is available
json_t* availableJ = json_object_get(manifestJ, "available");


Loading…
Cancel
Save