mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-21 15:25:19 +03:00
Fix tab switching
This commit is contained in:
parent
cfdf68ebdd
commit
2be9e53e97
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ const FC = require('./fc');
|
||||||
const interval = require('./intervals');
|
const interval = require('./intervals');
|
||||||
const { scaleRangeInt } = require('./helpers');
|
const { scaleRangeInt } = require('./helpers');
|
||||||
const i18n = require('./localization');
|
const i18n = require('./localization');
|
||||||
|
const mspDeduplicationQueue = require("./msp/mspDeduplicationQueue");
|
||||||
|
|
||||||
var TABS = {}; // filled by individual tab js file
|
var TABS = {}; // filled by individual tab js file
|
||||||
|
|
||||||
|
@ -90,6 +91,7 @@ GUI_control.prototype.log = function (message) {
|
||||||
// default switch doesn't require callback to be set
|
// default switch doesn't require callback to be set
|
||||||
GUI_control.prototype.tab_switch_cleanup = function (callback) {
|
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
|
MSP.callbacks_cleanup(); // we don't care about any old data that might or might not arrive
|
||||||
|
mspDeduplicationQueue.flush();
|
||||||
|
|
||||||
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
|
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue