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)