Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c77d8df1
Commit
c77d8df1
authored
Oct 26, 2016
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure user knows an email is needed for log uploading.
parent
82446241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
MavlinkSettings.qml
src/ui/preferences/MavlinkSettings.qml
+15
-5
No files found.
src/ui/preferences/MavlinkSettings.qml
View file @
c77d8df1
...
@@ -57,8 +57,8 @@ Rectangle {
...
@@ -57,8 +57,8 @@ Rectangle {
visible
:
false
visible
:
false
icon
:
StandardIcon
.
Warning
icon
:
StandardIcon
.
Warning
standardButtons
:
StandardButton
.
Close
standardButtons
:
StandardButton
.
Close
title
:
qsTr
(
"
Uploading Log Files
"
)
title
:
qsTr
(
"
MAVLink Logging
"
)
text
:
qsTr
(
"
Please enter an email address before uploading log files.
"
)
text
:
qsTr
(
"
Please enter an email address before uploading
MAVLink
log files.
"
)
}
}
QGCFlickable
{
QGCFlickable
{
...
@@ -235,6 +235,11 @@ Rectangle {
...
@@ -235,6 +235,11 @@ Rectangle {
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
onEditingFinished
:
{
onEditingFinished
:
{
QGroundControl
.
mavlinkLogManager
.
emailAddress
=
emailField
.
text
QGroundControl
.
mavlinkLogManager
.
emailAddress
=
emailField
.
text
if
(
emailField
.
text
===
""
)
{
autoUploadCheck
.
checked
=
false
QGroundControl
.
mavlinkLogManager
.
enableAutoUpload
=
false
console
.
log
(
"
forcing enableAutoUpload to false
"
)
}
}
}
}
}
}
}
...
@@ -283,9 +288,14 @@ Rectangle {
...
@@ -283,9 +288,14 @@ Rectangle {
id
:
autoUploadCheck
id
:
autoUploadCheck
text
:
qsTr
(
"
Enable automatic log uploads
"
)
text
:
qsTr
(
"
Enable automatic log uploads
"
)
checked
:
QGroundControl
.
mavlinkLogManager
.
enableAutoUpload
checked
:
QGroundControl
.
mavlinkLogManager
.
enableAutoUpload
enabled
:
emailField
.
text
!==
""
&&
urlField
!==
""
onClicked
:
{
onClicked
:
{
QGroundControl
.
mavlinkLogManager
.
enableAutoUpload
=
checked
QGroundControl
.
mavlinkLogManager
.
emailAddress
=
emailField
.
text
if
(
checked
&&
QGroundControl
.
mavlinkLogManager
.
emailAddress
===
""
)
{
checked
=
false
emptyEmailDialog
.
open
()
}
else
{
QGroundControl
.
mavlinkLogManager
.
enableAutoUpload
=
checked
}
}
}
}
}
//-----------------------------------------------------------------
//-----------------------------------------------------------------
...
@@ -293,7 +303,7 @@ Rectangle {
...
@@ -293,7 +303,7 @@ Rectangle {
QGCCheckBox
{
QGCCheckBox
{
text
:
qsTr
(
"
Delete log file after uploading
"
)
text
:
qsTr
(
"
Delete log file after uploading
"
)
checked
:
QGroundControl
.
mavlinkLogManager
.
deleteAfterUpload
checked
:
QGroundControl
.
mavlinkLogManager
.
deleteAfterUpload
enabled
:
emailField
.
text
!==
""
&&
urlField
!==
""
&&
autoUploadCheck
.
checked
enabled
:
autoUploadCheck
.
checked
onClicked
:
{
onClicked
:
{
QGroundControl
.
mavlinkLogManager
.
deleteAfterUpload
=
checked
QGroundControl
.
mavlinkLogManager
.
deleteAfterUpload
=
checked
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment