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']