1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-19 06:15:11 +03:00

Fix tab switching

This commit is contained in:
Pawel Spychalski (DzikuVx) 2024-05-17 15:25:22 +02:00
parent cfdf68ebdd
commit 2be9e53e97

View file

@ -9,6 +9,7 @@ const FC = require('./fc');
const interval = require('./intervals');
const { scaleRangeInt } = require('./helpers');
const i18n = require('./localization');
const mspDeduplicationQueue = require("./msp/mspDeduplicationQueue");
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
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
mspDeduplicationQueue.flush();
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);