From 8aad153c11204cad7c3d7b15001da4ad6094bd24 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Sat, 14 Feb 2026 18:56:04 +0000 Subject: [PATCH] fix: Add missing QCheckBox import to overlay_window.py BUG: name 'QCheckBox' is not defined errors in plugins settings tab. Root cause: QCheckBox was imported inside _open_settings() method but _create_plugins_settings_tab() also uses it. The local import didn't propagate to the helper method. FIX: - Added QCheckBox to top-level PyQt6 imports - Added QTabWidget to top-level imports (also used) - Removed redundant local imports from _open_settings() All settings UI components now available globally in the module. --- core/overlay_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/overlay_window.py b/core/overlay_window.py index 9402ea8..dafc777 100644 --- a/core/overlay_window.py +++ b/core/overlay_window.py @@ -18,7 +18,7 @@ try: QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QPushButton, QStackedWidget, QSystemTrayIcon, QMenu, QApplication, QFrame, QListWidget, QListWidgetItem, - QButtonGroup, QSplitter, QSizePolicy + QButtonGroup, QSplitter, QSizePolicy, QCheckBox, QTabWidget ) from PyQt6.QtCore import Qt, QTimer, pyqtSignal, QSize, QPropertyAnimation, QEasingCurve, QParallelAnimationGroup from PyQt6.QtGui import QAction, QIcon, QColor, QFont, QKeySequence, QShortcut @@ -696,7 +696,7 @@ class OverlayWindow(QMainWindow): def _open_settings(self): """Open settings dialog.""" - from PyQt6.QtWidgets import QDialog, QVBoxLayout, QTabWidget, QCheckBox, QHBoxLayout + from PyQt6.QtWidgets import QDialog c = get_all_colors()