mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
prevent re-sending analytics appview on tab re-initialization, add 1500ms delay on configuration save & reboot
This commit is contained in:
parent
5cd042ae9d
commit
f9ff34fb8b
13 changed files with 59 additions and 33 deletions
|
@ -8,8 +8,10 @@ TABS.cli = {
|
|||
TABS.cli.initialize = function (callback) {
|
||||
var self = this;
|
||||
|
||||
GUI.active_tab = 'cli';
|
||||
googleAnalytics.sendAppView('CLI Page');
|
||||
if (GUI.active_tab != 'cli') {
|
||||
GUI.active_tab = 'cli';
|
||||
googleAnalytics.sendAppView('CLI Page');
|
||||
}
|
||||
|
||||
$('#content').load("./tabs/cli.html", function () {
|
||||
// translate to user-selected language
|
||||
|
@ -178,7 +180,7 @@ TABS.cli.cleanup = function (callback) {
|
|||
// (another approach is however much more complicated):
|
||||
// we can setup an interval asking for data lets say every 200ms, when data arrives, callback will be triggered and tab switched
|
||||
// we could probably implement this someday
|
||||
GUI.timeout_add('waiting_for_bootup', function () {
|
||||
GUI.timeout_add('waiting_for_bootup', function waiting_for_bootup() {
|
||||
CONFIGURATOR.cliActive = false;
|
||||
CONFIGURATOR.cliValid = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue