@samitouri / QOSami-HFS / commits / a833e29b

plugins: offer regressions among updates

Massimo Melina committed May 21, 2024 at 15:40 UTC a833e29b0913540278cb419e2235322e4bbdacd4
1 file changed +1 -1
src/api.plugins.ts
+1 -1
@@ -39,7 +39,7 @@ const apis: ApiHandlers = {
39 if (!online) return
40 const disk = getPluginInfo(folder)
41 if (!disk) return // plugin removed in the meantime?
42 - if (online.version! > disk.version) { // it IS newer
42 + if (online.version !== disk.version) { // not just newer one, in case a version was retired
43 online.id = disk.id // id is installation-dependant, and online cannot know
44 online.repo = serialize(disk).repo // show the user the current repo we are getting this update from, not a possibly-changed future one
45 list.add(online)