Added working plugin store prototype

- Added plugin install and remove api
This commit is contained in:
Toby Chui
2025-04-24 21:19:16 +08:00
parent 6750c7fe3d
commit ffc67ede12
6 changed files with 362 additions and 32 deletions

View File

@@ -274,13 +274,10 @@ func (m *Manager) StopPlugin(pluginID string) error {
}
// Check if the plugin is still running
func (m *Manager) PluginStillRunning(pluginID string) bool {
func (m *Manager) PluginIsRunning(pluginID string) bool {
plugin, err := m.GetPluginByID(pluginID)
if err != nil {
return false
}
if plugin.process == nil {
return false
}
return plugin.process.ProcessState == nil
return plugin.IsRunning()
}