aboutsummaryrefslogtreecommitdiff
path: root/plugins/plugin_manager
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-01-28 14:22:50 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-01-28 14:22:50 -0500
commitdf0a34afee0a1a199392b024277c1bb9d2062798 (patch)
tree2d333657fa3bf87b15a4c504c4b163a2b1fa5c19 /plugins/plugin_manager
parent74aadee6563b5aa96b49a45148b38c3113969177 (diff)
downloadlite-xl-plugin-manager-df0a34afee0a1a199392b024277c1bb9d2062798.tar.gz
lite-xl-plugin-manager-df0a34afee0a1a199392b024277c1bb9d2062798.zip
Added fonts to lpm as a new type.
Diffstat (limited to 'plugins/plugin_manager')
-rw-r--r--plugins/plugin_manager/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua
index 76f799a..dcc987e 100644
--- a/plugins/plugin_manager/init.lua
+++ b/plugins/plugin_manager/init.lua
@@ -167,6 +167,7 @@ function PluginManager:refresh(options)
end
end
self.last_refresh = os.time()
+ core.redraw = true
prom:resolve(addons)
run({ "repo", "list" }, options.progress):done(function(repositories)
self.repositories = json.decode(repositories)["repositories"]
@@ -249,7 +250,7 @@ function PluginManager:get_addon(name_and_version, options)
end
local match = false
for i, addon in ipairs(PluginManager.addons) do
- if not addon.mod_version or tostring(addon.mod_version) == tostring(MOD_VERSION_MAJOR) and (addon.version == version or version == nil) then
+ if not addon.mod_version or tostring(addon.mod_version) == tostring(rawget(_G, MOD_VERSION_MAJOR) or rawget(_G, MOD_VERSION)) and (addon.version == version or version == nil) then
promise:resolve(addon)
match = true
break