1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

CLI Client-side Autocomplete

Executes silently various commands on CLI open. Parses the output
and build autocomplete cache. Autcomplete hints are displayed in
popup lists.
This commit is contained in:
Cleric-K 2019-03-24 01:21:52 +02:00
parent d912de75f1
commit f96fc0eec3
11 changed files with 627 additions and 11 deletions

View file

@ -370,6 +370,15 @@ function startProcess() {
}).change();
});
$('div.cliAutoComplete input')
.prop('checked', CliAutoComplete.configEnabled)
.change(function () {
var checked = $(this).is(':checked');
chrome.storage.local.set({'cliAutoComplete': checked});
CliAutoComplete.setEnabled(checked);
}).change();
chrome.storage.local.get('userLanguageSelect', function (result) {
var userLanguage_e = $('div.userLanguage select');
@ -530,6 +539,10 @@ function startProcess() {
}
}).change();
});
chrome.storage.local.get('cliAutoComplete', function (result) {
CliAutoComplete.setEnabled(typeof result.cliAutoComplete == 'undefined' || result.cliAutoComplete); // On by default
});
};
function checkForConfiguratorUpdates() {