diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-17 17:09:16 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-17 17:09:16 -0500 |
commit | c2c049448c4357eeb8474f21e880fd7258d90d80 (patch) | |
tree | 8d127dd3951778424568ea3f117dbf5dcb6a3dab /plugins/plugin_manager/plugin_view.lua | |
parent | c73f371caa7c6d2591ba676afd940d53fe852e40 (diff) | |
download | lite-xl-plugin-manager-c2c049448c4357eeb8474f21e880fd7258d90d80.tar.gz lite-xl-plugin-manager-c2c049448c4357eeb8474f21e880fd7258d90d80.zip |
Fixed up plugin manager plugin, moving to optimization.
Diffstat (limited to 'plugins/plugin_manager/plugin_view.lua')
-rw-r--r-- | plugins/plugin_manager/plugin_view.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/plugin_manager/plugin_view.lua b/plugins/plugin_manager/plugin_view.lua index 4cc2502..a7d5ec7 100644 --- a/plugins/plugin_manager/plugin_view.lua +++ b/plugins/plugin_manager/plugin_view.lua @@ -33,7 +33,7 @@ function PluginView:new() PluginView.super.new(self) self.scrollable = true self.show_incompatible_plugins = false - self.plugin_table_columns = { "Name", "Version", "Modversion", "Status", "Tags", "Author", "Description" } + self.plugin_table_columns = { "ID", "Name", "Version", "Type", "Modversion", "Status", "Tags", "Author", "Description" } self.hovered_plugin = nil self.hovered_plugin_idx = nil self.selected_plugin = nil @@ -48,7 +48,7 @@ function PluginView:new() end local function get_plugin_text(plugin) - return plugin.name, plugin.version, plugin.mod_version, plugin.status, join(", ", plugin.tags), plugin.author or "unknown", plugin.description-- (plugin.description or ""):gsub("%[[^]+%]%([^)]+%)", "") + return plugin.id, (plugin.name or plugin.id), plugin.version, plugin.type, plugin.mod_version, plugin.status, join(", ", plugin.tags), plugin.author or "unknown", plugin.description-- (plugin.description or ""):gsub("%[[^]+%]%([^)]+%)", "") end @@ -112,7 +112,7 @@ end function PluginView:get_plugins() - return self.show_incompatible_plugins and self.plugin_manager.plugins or self.plugin_manager.valid_plugins + return self.show_incompatible_plugins and self.plugin_manager.addons or self.plugin_manager.valid_addons end |