-
-
Notifications
You must be signed in to change notification settings - Fork 574
Fix updating mission item total #2667
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
Conversation
Just as a clarification, function |
Thanks! Would you mind fixing the style with |
12b6bbf
to
68ffa73
Compare
Pushed forced after reformatting the code. I only formatted my changes though, clang-format also reformatted unrelated file: ./ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable to me, but I'll let @julianoes review 😇
auto converted_result = convert_result(result); | ||
auto converted_items = convert_items(int_items); | ||
|
||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | |
if (converted_result == MissionRaw::Result::Success) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for suggestion, added to the original commit.
auto converted_result = convert_result(result); | ||
auto converted_items = convert_items(items); | ||
|
||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | |
if (converted_result == MissionRaw::Result::Success) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
Total number of items in a mission should only be updated when mission is downloaded. Downloading geofence or rally points should not affect this total.
68ffa73
to
40b02a7
Compare
|
Thanks @irajkovic. |
Total number of items in a mission should only be updated when mission is downloaded. Downloading geofence or rally points should not affect this total.