From bd23fc5c65668245d10401909b8b4f5ec9dd8a6b Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Mon, 16 Feb 2026 00:34:18 +0000 Subject: [PATCH] fix: Debug PluginsView loading and add to UI exports - Added debug output to diagnose why PluginsView isn't loading - Added PluginsView and WidgetsView to core/ui/__init__.py exports - Removed plugin_manager check that was causing fallback - Will show console output to diagnose the issue --- core/perfect_ux.py | 16 ++++++++++++++-- core/ui/__init__.py | 4 +++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/core/perfect_ux.py b/core/perfect_ux.py index 86f34eb..a1e48b5 100644 --- a/core/perfect_ux.py +++ b/core/perfect_ux.py @@ -1002,12 +1002,24 @@ class PerfectMainWindow(QMainWindow): def _create_plugins_view(self) -> QWidget: """Create the Plugins view.""" + # Debug info + print(f"[PerfectUX] Creating plugins view...") + print(f"[PerfectUX] PLUGINS_VIEW_AVAILABLE: {PLUGINS_VIEW_AVAILABLE}") + print(f"[PerfectUX] plugin_manager: {self.plugin_manager}") + # Try to use the actual PluginsView if available - if PLUGINS_VIEW_AVAILABLE and self.plugin_manager: + if PLUGINS_VIEW_AVAILABLE: try: - return PluginsView(self) + print("[PerfectUX] Creating PluginsView...") + view = PluginsView(self) + print("[PerfectUX] PluginsView created successfully!") + return view except Exception as e: + import traceback print(f"[PerfectUX] Failed to create PluginsView: {e}") + traceback.print_exc() + else: + print("[PerfectUX] PluginsView not available, using fallback") # Fallback to placeholder container = QWidget() diff --git a/core/ui/__init__.py b/core/ui/__init__.py index 5786768..44b13ec 100644 --- a/core/ui/__init__.py +++ b/core/ui/__init__.py @@ -7,5 +7,7 @@ Built-in UI views that are part of the framework. from .settings_view import SettingsView from .dashboard_view import DashboardView from .search_view import UniversalSearchView +from .plugins_view import PluginsView +from .widgets_view import WidgetsView -__all__ = ['SettingsView', 'DashboardView', 'UniversalSearchView'] +__all__ = ['SettingsView', 'DashboardView', 'UniversalSearchView', 'PluginsView', 'WidgetsView']