From 299b1e0fa592c7a024b84e525c61b57fc65f7b54 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Wed, 11 Feb 2026 12:34:13 +0000 Subject: [PATCH] fix: correct screenshot directory path for hotkey manager ScreenshotCapture doesn't have screenshot_dir attribute - use Path directly --- ui/main_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/main_window.py b/ui/main_window.py index 724f84d..96f1291 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -1901,8 +1901,9 @@ class MainWindow(QMainWindow): try: from modules.auto_screenshot import AutoScreenshot - # Create screenshot manager - auto_screenshot = AutoScreenshot(self._screenshot_capture.screenshot_dir) + # Create screenshot manager - use gallery dialog's screenshots directory + screenshots_dir = Path(__file__).parent.parent / "data" / "screenshots" + auto_screenshot = AutoScreenshot(screenshots_dir) # Create hotkey manager self._screenshot_hotkeys = ScreenshotHotkeyManager(auto_screenshot)