aboutsummaryrefslogtreecommitdiff
path: root/plugins/plugin_manager/plugin_view.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-27 10:26:42 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-27 10:26:42 -0400
commit02586b9fa37bc6ad42bd1e59321bb2334bec6433 (patch)
treee348a62d8cb87b4914b27bdf6fc1825b53812cb4 /plugins/plugin_manager/plugin_view.lua
parentf69e69b5bb5ecff0bf8154b9aab0e1c8a1dc265e (diff)
downloadlite-xl-plugin-manager-02586b9fa37bc6ad42bd1e59321bb2334bec6433.tar.gz
lite-xl-plugin-manager-02586b9fa37bc6ad42bd1e59321bb2334bec6433.zip
Fixed some minor bugs, moved json to a library, updated manifest to reflect this.
Diffstat (limited to 'plugins/plugin_manager/plugin_view.lua')
-rw-r--r--plugins/plugin_manager/plugin_view.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/plugin_manager/plugin_view.lua b/plugins/plugin_manager/plugin_view.lua
index 1f16b3c..d223be6 100644
--- a/plugins/plugin_manager/plugin_view.lua
+++ b/plugins/plugin_manager/plugin_view.lua
@@ -96,7 +96,7 @@ end
function PluginView:refresh()
self.loading = true
- return self.plugin_manager:refresh(self.progress_callback):done(function()
+ return self.plugin_manager:refresh({ progress = self.progress_callback }):done(function()
self.loading = false
self.initialized = true
self.widths = {}
@@ -204,7 +204,7 @@ end
function PluginView:install(plugin)
self.loading = true
- self.plugin_manager:install(plugin, self.progress_callback):done(function()
+ self.plugin_manager:install(plugin, { progress = self.progress_callback }):done(function()
self.loading = false
self.selected_plugin, plugin_view.selected_plugin_idx = nil, nil
end)
@@ -212,7 +212,7 @@ end
function PluginView:uninstall(plugin)
self.loading = true
- self.plugin_manager:uninstall(plugin, self.progress_callback):done(function()
+ self.plugin_manager:uninstall(plugin, { progress = self.progress_callback }):done(function()
self.loading = false
self.selected_plugin, plugin_view.selected_plugin_idx = nil, nil
end)
@@ -221,7 +221,7 @@ end
function PluginView:reinstall(plugin)
self.loading = true
- self.plugin_manager:reinstall(plugin, self.progress_callback):done(function()
+ self.plugin_manager:reinstall(plugin, { progress = self.progress_callback }):done(function()
self.loading = false
self.selected_plugin, plugin_view.selected_plugin_idx = nil, nil
end)
@@ -230,7 +230,7 @@ end
function PluginView:upgrade()
self.loading = true
- return self.plugin_manager:upgrade(self.progress_callback):done(function()
+ return self.plugin_manager:upgrade({ progress = self.progress_callback }):done(function()
self.loading = false
self.selected_plugin, plugin_view.selected_plugin_idx = nil, nil
end)