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

Remove transfer when privateMode is set #1057

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilpianista
Copy link

Follow up of transfer-engine!14, the goal here is to hide transfers made from a private tab.

I think that is OK to remove the transfer when it's completed, cancelled or failed.

@@ -132,6 +133,9 @@ void DownloadManager::recvObserve(const QString message, const QVariant data)
} else if (isMyApp(targetPath)) {
finishMyAppDownload(targetPath);
}
if (isPrivateMode) {
m_transferClient->clearTransfer(m_download2transferMap.value(downloadId));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small downloads disappear now really quickly. I doubt that people find downloaded files from the file system. Instead of immediately clearing, I think it would be nicer to gather a list of completed private downloadIds over here. Then upon clearing of PrivateTabModel (tab count reaching zero and destruction of the model) clear also private downloads from the DownloadManager. How do you see this?

Briefly chatted this with @pvuorela as well.

@rainemak
Copy link
Member

Small comment, could you please re-target this towards next.

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.

None yet

2 participants