mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
add error message for not being connected
This commit is contained in:
parent
19de1e8040
commit
8dfec796ee
2 changed files with 61 additions and 54 deletions
|
@ -493,6 +493,9 @@
|
|||
"loggingBack": {
|
||||
"message": "Leave Logging / Disconnect"
|
||||
},
|
||||
"loggingErrorNotConnected": {
|
||||
"message": "You need to <strong>connect</strong> first"
|
||||
},
|
||||
"loggingErrorLogFile": {
|
||||
"message": "Please select log file"
|
||||
},
|
||||
|
|
|
@ -40,6 +40,7 @@ function tab_initialize_logging() {
|
|||
$('a.log_file').click(prepare_file);
|
||||
|
||||
$('a.logging').click(function() {
|
||||
if (GUI.connected_to) {
|
||||
if (fileEntry != null) {
|
||||
var clicks = $(this).data('clicks');
|
||||
|
||||
|
@ -110,6 +111,9 @@ function tab_initialize_logging() {
|
|||
} else {
|
||||
GUI.log(chrome.i18n.getMessage('loggingErrorLogFile'));
|
||||
}
|
||||
} else {
|
||||
GUI.log(chrome.i18n.getMessage('loggingErrorNotConnected'));
|
||||
}
|
||||
});
|
||||
|
||||
if (MSP_pass_through) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue