1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +03:00

added mixer_profile switch detection to refresh

This commit is contained in:
shota 2023-11-09 18:24:09 +09:00
parent 76a09655b5
commit f4958e4e42

View file

@ -264,6 +264,11 @@ GUI_control.prototype.updateProfileChange = function() {
$('#mixerprofilechange').val(CONFIG.mixer_profile);
$('#profilechange').val(CONFIG.profile);
$('#batteryprofilechange').val(CONFIG.battery_profile);
if (this.hasOwnProperty('last_mixer_profile') && this.last_mixer_profile !== CONFIG.mixer_profile) {
GUI.log(chrome.i18n.getMessage('loadedMixerProfile', [CONFIG.mixer_profile]));
updateActivatedTab();
}
this.last_mixer_profile = CONFIG.mixer_profile;
};
GUI_control.prototype.fillSelect = function ($element, values, currentValue, unit) {