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

Fix issue with cached tile set download cancelation #12026

Merged

Conversation

SleepingSoul
Copy link
Contributor

Fix issue with cached tile set download cancelation

Description

Cancel download did not cancel download. It just set "downloading" flag to "false". This fix resolves this issue.

Test Steps

I have tested it locally, on release build, by starting offline map download and stopping it

Checklist:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -82,11 +87,17 @@ void QGCCachedTileSet::createDownloadTask()

void QGCCachedTileSet::resumeDownloadTask()
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we only resume if it is already canceled? If you click Ok or Cancel the UI stops updating the download and this value can get out of sync with whether the button shows to resume/cancel

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay since its merged now I guess it is not necessary anymore

Copy link
Collaborator

Choose a reason for hiding this comment

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

I tried it out and it didn't help the problem I was noticing, so I figured just merge this and I'll look more into it later. I think it's partly on the QML side of things

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay got it, thanks for explanation

@HTRamsey HTRamsey merged commit 6407b70 into mavlink:master Oct 19, 2024
7 checks passed
@SleepingSoul SleepingSoul deleted the fix-issue-with-cancel-download branch October 19, 2024 17:48
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