Skip to content

Conversation

adafdg
Copy link

@adafdg adafdg commented Sep 28, 2025

This commit introduces drag-and-drop functionality to the main window.

Users can now drag a single folder from the file explorer onto the application window to select it for compression. This improves the user experience by providing a quicker alternative to the "Select Folder" button.

Changes include:

  • Enabling drop events on MainWindow.xaml.
  • Adding DragEnter and Drop event handlers in MainWindow.xaml.vb to validate and process the dropped folder.
  • Adding a FolderPath write-only property to HomeViewModel.vb to integrate with the existing folder processing logic.

This commit introduces drag-and-drop functionality to the main window.

Users can now drag a single folder from the file explorer onto the application window to select it for compression. This improves the user experience by providing a quicker alternative to the "Select Folder" button.

Changes include:
- Enabling drop events on `MainWindow.xaml`.
- Adding `DragEnter` and `Drop` event handlers in `MainWindow.xaml.vb` to validate and process the dropped folder.
- Adding a `FolderPath` write-only property to `HomeViewModel.vb` to integrate with the existing folder processing logic.
…d safety:

1.  **Drag-and-Drop Support:**
    - Users can now drag a single folder from the file explorer onto the main application window.
    - This action automatically initiates the folder analysis, providing a more intuitive and faster workflow compared to using the file selection dialog.

2.  **DirectStorage Game Detection:**
    - The application now scans for `dstorage.dll` and `dstoragecore.dll` during folder analysis.
    - If these files are detected, a prominent warning is displayed in the UI, and the compression controls are disabled for that folder.
    - This prevents users from compressing games that use DirectStorage, which could lead to performance degradation or prevent the game from launching.
@adafdg
Copy link
Author

adafdg commented Sep 28, 2025

This commit introduces two new major features to improve usability and safety:

  1. Drag-and-Drop Support:

    • Users can now drag a single folder from the file explorer onto the main application window.
    • This action automatically initiates the folder analysis, providing a more intuitive and faster workflow compared to using the file selection dialog.
  2. DirectStorage Game Detection:

    • The application now scans for dstorage.dll and dstoragecore.dll during folder analysis.
    • If these files are detected, a prominent warning is displayed in the UI, and the compression controls are disabled for that folder.
    • This prevents users from compressing games that use DirectStorage, which could lead to performance degradation or prevent the game from launching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant