mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Hide firmware version dropdown for virtual mode (#4097)
* Hide firmware version dropdown for virtual mode * Another try * Cleanup
This commit is contained in:
parent
1ee980c59c
commit
9a0fb31dce
3 changed files with 17 additions and 68 deletions
|
@ -642,14 +642,10 @@ function onConnect() {
|
|||
}
|
||||
}
|
||||
|
||||
const sensorState = $('#sensor-status');
|
||||
sensorState.show();
|
||||
|
||||
const portPicker = $('#portsinput');
|
||||
portPicker.hide();
|
||||
|
||||
const dataflash = $('#dataflash_wrapper_global');
|
||||
dataflash.show();
|
||||
// header bar
|
||||
$('#sensor-status').show();
|
||||
$('#portsinput').hide();
|
||||
$('#dataflash_wrapper_global').show();
|
||||
}
|
||||
|
||||
function onClosed(result) {
|
||||
|
@ -659,17 +655,11 @@ function onClosed(result) {
|
|||
$('#tabs ul.mode-connected-cli').hide();
|
||||
$('#tabs ul.mode-disconnected').show();
|
||||
|
||||
const sensorState = $('#sensor-status');
|
||||
sensorState.hide();
|
||||
|
||||
const portPicker = $('#portsinput');
|
||||
portPicker.show();
|
||||
|
||||
const dataflash = $('#dataflash_wrapper_global');
|
||||
dataflash.hide();
|
||||
|
||||
const battery = $('#quad-status_wrapper');
|
||||
battery.hide();
|
||||
// header bar
|
||||
$('#sensor-status').hide();
|
||||
$('#portsinput').show();
|
||||
$('#dataflash_wrapper_global').hide();
|
||||
$('#quad-status_wrapper').hide();
|
||||
|
||||
clearLiveDataRefreshTimer();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue