Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The folder selector dialog should open in the last location it opened. #13

Open
CaelCoruscare opened this issue Sep 8, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@CaelCoruscare
Copy link
Owner

When you click the "choose folder" button, a dialog opens to allow you to choose a folder of images.

The dialog currently defaults to current User's "Photos" folder. It should instead default to folder above the last folder you selected. If that's not possible, it should instead default to the directory were the app is being run.

Example:
If the last folder selected was:
"E://2023/CameraTraps/Camera_B4"
The dialogue should open at:
"E://2023/CameraTraps"

If this is the first time the folder was selected:
Choose the folder where the WildSort application is located

If the last folder selected was:
"E://2023/CameraTraps/Camera_B4"
BUT, "E://" was unmounted, and the filepath is no longer valid:
Choose the folder where the WildSort application is located

@CaelCoruscare
Copy link
Owner Author

CaelCoruscare commented Sep 8, 2023

This will require:

  • Create a Slot() in SlotBridge.py
  • Call the Slot() from FolderSelector.qml and use the return value as the folder to open the dialogue at (see example of slotbridge call in ReportBuilder.qml)
  • Have the Slot() call a function in SortLogic.py to handle the logic
  • Write your code in the SortLogic.py function

@CaelCoruscare CaelCoruscare added the enhancement New feature or request label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants