From 7009ebbfbd18ff8463d30d7a8ee444a24a280746 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Mon, 16 Feb 2026 00:47:47 +0000 Subject: [PATCH] fix: Add missing QCheckBox import and fix Qt.QSize reference 1. Added QCheckBox to perfect_ux.py imports (was missing) 2. Fixed dashboard_view.py: Qt.QSize -> QSize (QtCore import) These fix the NameError and AttributeError that prevented the app from starting. --- core/perfect_ux.py | 2 +- core/ui/dashboard_view.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/perfect_ux.py b/core/perfect_ux.py index 1da7ea8..e034f93 100644 --- a/core/perfect_ux.py +++ b/core/perfect_ux.py @@ -28,7 +28,7 @@ from PyQt6.QtWidgets import ( QStackedWidget, QLabel, QPushButton, QFrame, QScrollArea, QGridLayout, QSizePolicy, QSpacerItem, QGraphicsDropShadowEffect, QProgressBar, QToolTip, - QDialog, QLineEdit, QTextEdit + QDialog, QLineEdit, QTextEdit, QCheckBox ) from PyQt6.QtCore import ( Qt, QTimer, pyqtSignal, QSize, QPropertyAnimation, diff --git a/core/ui/dashboard_view.py b/core/ui/dashboard_view.py index 6219091..9931828 100644 --- a/core/ui/dashboard_view.py +++ b/core/ui/dashboard_view.py @@ -8,7 +8,7 @@ from PyQt6.QtWidgets import ( QWidget, QVBoxLayout, QHBoxLayout, QLabel, QGridLayout, QFrame, QScrollArea, QPushButton ) -from PyQt6.QtCore import Qt +from PyQt6.QtCore import Qt, QSize from core.icon_manager import get_icon_manager @@ -89,7 +89,7 @@ class DashboardView(QWidget): # Plugin store button with icon store_btn = QPushButton("Open Plugin Store") store_btn.setIcon(self.icon_manager.get_icon("shopping-bag")) - store_btn.setIconSize(Qt.QSize(18, 18)) + store_btn.setIconSize(QSize(18, 18)) store_btn.setStyleSheet(""" QPushButton { background-color: #ff8c42;