1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 04:45:20 +03:00

migrate privacy policy and changelog to a tab

This commit is contained in:
Kyle K 2019-08-02 06:48:50 +00:00
parent 5eedc3b507
commit 6fe3cb1500
11 changed files with 82 additions and 204 deletions

View file

@ -16,7 +16,9 @@ var GUI_control = function () {
this.defaultAllowedTabsWhenDisconnected = [
'landing',
'changelog',
'firmware_flasher',
'privacy_policy',
'help'
];
this.defaultAllowedFCTabsWhenConnected = [
@ -243,7 +245,7 @@ GUI_control.prototype.tab_switch_cleanup = function (callback) {
MSP.callbacks_cleanup(); // we don't care about any old data that might or might not arrive
GUI.interval_kill_all(); // all intervals (mostly data pulling) needs to be removed on tab switch
if (this.active_tab) {
if (this.active_tab && TABS[this.active_tab]) {
TABS[this.active_tab].cleanup(callback);
} else {
callback();