aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-08 12:32:48 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-08 12:32:48 -0500
commitc2a9515792df186c2c4f4e987088bc0b9c5ccbdd (patch)
tree9c1b1a5c805bfe5b8e961a8506f9a11fe9cb9de5 /plugins
parent53c8154403c9e2323fe4b6c5fbb40e5c1819db8a (diff)
downloadlite-xl-plugin-manager-c2a9515792df186c2c4f4e987088bc0b9c5ccbdd.tar.gz
lite-xl-plugin-manager-c2a9515792df186c2c4f4e987088bc0b9c5ccbdd.zip
Fixed issue with rawget, and removed unecessary checksum.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_manager/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua
index dcc987e..68e8d0b 100644
--- a/plugins/plugin_manager/init.lua
+++ b/plugins/plugin_manager/init.lua
@@ -250,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(rawget(_G, MOD_VERSION_MAJOR) or rawget(_G, MOD_VERSION)) 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