From ead1044781d104c74f0248e22ecd0a075ed41d52 Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 03:30:35 +0100 Subject: [PATCH] fix(plugins): Only show actually installed plugins in Installed Plugins page - Filter pluginList to only include plugins where installed == True - Uninstalled plugins will only appear in Plugin Store, not Installed Plugins - This fixes the issue where uninstalled plugins were still showing locally - Plugins in /home/cyberpanel/plugins/ but not in /usr/local/CyberCP/ are now hidden from Installed Plugins --- pluginHolder/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pluginHolder/views.py b/pluginHolder/views.py index 5f9807920..d7f6527be 100644 --- a/pluginHolder/views.py +++ b/pluginHolder/views.py @@ -251,7 +251,10 @@ def installed(request): if 'is_paid' not in data or not isinstance(data['is_paid'], bool): data['is_paid'] = False - pluginList.append(data) + # Only add to list if plugin is actually installed + # Uninstalled plugins should only appear in Plugin Store, not Installed Plugins page + if data['installed']: + pluginList.append(data) processed_plugins.add(plugin) # Mark as processed except ElementTree.ParseError as e: errorPlugins.append({'name': plugin, 'error': f'XML parse error: {str(e)}'})