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

Added recursive download and tab icon when a filesystem is shared #140

Merged
merged 5 commits into from
Aug 31, 2019

Conversation

Pourliver
Copy link
Contributor

We can now right click and download a folder recursively. I made the downloadDialog non-modal, since a modal is a blocking action, meaning that we cannot focus the original window. I did the same thing to the download completion popup.

I also added a jobs queue that allows us to queue up downloads, they starts as soon as the previous download has ended. Practical when we are downloading a huge zip / folder, and we want to keep looking for interesting file.

The logic may be confusing, because of the nature of the observers, I had to make sure that only one job was executing at a time.

The 3 queues have distinct jobs. jobsQueue holds the action requested by the user. When a job is being processed, the sub-jobs goes into directoryDownloadQueue and fileDownloadQueue. When we download a folder, we start by downloading all files inside the folder, then we do the same for each sub-folder.

I've worked on this for a while so I don't know what I should explain design wise lol. Let me know if anything is unclear.

@Pourliver Pourliver requested review from xshill and Res260 July 29, 2019 19:59
pyrdp/player/LiveEventHandler.py Outdated Show resolved Hide resolved
pyrdp/player/LiveEventHandler.py Show resolved Hide resolved
pyrdp/player/LiveEventHandler.py Show resolved Hide resolved
@Res260
Copy link
Collaborator

Res260 commented Aug 27, 2019

TODO: Add the pr changes to changelog.md

@Res260
Copy link
Collaborator

Res260 commented Aug 31, 2019

Merged master into the branch, updated changelog and tested. Ready to merge.

@Res260 Res260 merged commit fc34a32 into master Aug 31, 2019
@obilodeau obilodeau deleted the recursive_download branch November 27, 2019 21:54
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.

2 participants