diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-02-04 14:40:35 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-02-04 14:40:35 -0500 |
commit | bc528010382dfc443860e1b175e9a10088db7619 (patch) | |
tree | 530cedcea8b4d6146bbb9b8ce76ca97d96df2c7a /plugins/plugin_manager/init.lua | |
parent | e0d5991adbff82591d8699bfebb3161aa21387fd (diff) | |
download | lite-xl-plugin-manager-bc528010382dfc443860e1b175e9a10088db7619.tar.gz lite-xl-plugin-manager-bc528010382dfc443860e1b175e9a10088db7619.zip |
Made things more backwards compatible, and added some additional fixes to view.
Diffstat (limited to 'plugins/plugin_manager/init.lua')
-rw-r--r-- | plugins/plugin_manager/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua index 82e5442..eea9efb 100644 --- a/plugins/plugin_manager/init.lua +++ b/plugins/plugin_manager/init.lua @@ -80,7 +80,7 @@ end local function run(cmd, progress) table.insert(cmd, 1, config.plugins.plugin_manager.lpm_binary_path) table.insert(cmd, "--json") - table.insert(cmd, "--mod-version=" .. MOD_VERSION_MAJOR) + table.insert(cmd, "--mod-version=" .. (rawget(_G, "MOD_VERSION") or MOD_VERSION_STRING)) -- #workaround hack for new system. table.insert(cmd, "--quiet") table.insert(cmd, "--progress") table.insert(cmd, "--userdir=" .. USERDIR) |