fix: correct screenshot directory path for hotkey manager

ScreenshotCapture doesn't have screenshot_dir attribute - use Path directly
This commit is contained in:
LemonNexus 2026-02-11 12:34:13 +00:00
parent 9c6ad18c2b
commit 299b1e0fa5
1 changed files with 3 additions and 2 deletions

View File

@ -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)