mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Fixed CI build type silently defaulting to Release
This commit is contained in:
parent
486ac0e4c8
commit
604fb85988
1 changed files with 8 additions and 14 deletions
|
@ -269,11 +269,6 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
// translate to user-selected language
|
// translate to user-selected language
|
||||||
i18n.localizePage();
|
i18n.localizePage();
|
||||||
|
|
||||||
chrome.storage.local.get('selected_build_type', function (result) {
|
|
||||||
// ensure default build type is selected
|
|
||||||
buildType_e.val(result.selected_build_type || 0).trigger('change');
|
|
||||||
});
|
|
||||||
|
|
||||||
buildType_e.change(function() {
|
buildType_e.change(function() {
|
||||||
$("a.load_remote_file").addClass('disabled');
|
$("a.load_remote_file").addClass('disabled');
|
||||||
var build_type = $(this).val();
|
var build_type = $(this).val();
|
||||||
|
@ -514,6 +509,11 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
chrome.storage.local.get('selected_build_type', function (result) {
|
||||||
|
// ensure default build type is selected
|
||||||
|
buildType_e.val(result.selected_build_type || 0).trigger('change');
|
||||||
|
});
|
||||||
|
|
||||||
chrome.storage.local.get('no_reboot_sequence', function (result) {
|
chrome.storage.local.get('no_reboot_sequence', function (result) {
|
||||||
if (result.no_reboot_sequence) {
|
if (result.no_reboot_sequence) {
|
||||||
$('input.updating').prop('checked', true);
|
$('input.updating').prop('checked', true);
|
||||||
|
@ -611,15 +611,9 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
|
|
||||||
chrome.storage.local.get('show_development_releases', function (result) {
|
chrome.storage.local.get('show_development_releases', function (result) {
|
||||||
if (result.show_development_releases) {
|
$('input.show_development_releases')
|
||||||
$('input.show_development_releases').prop('checked', true);
|
.prop('checked', result.show_development_releases)
|
||||||
} else {
|
.change(function () {
|
||||||
$('input.show_development_releases').prop('checked', false);
|
|
||||||
}
|
|
||||||
|
|
||||||
self.releaseChecker.loadReleaseData(buildBoardOptions);
|
|
||||||
|
|
||||||
$('input.show_development_releases').change(function () {
|
|
||||||
chrome.storage.local.set({'show_development_releases': $(this).is(':checked')});
|
chrome.storage.local.set({'show_development_releases': $(this).is(':checked')});
|
||||||
}).change();
|
}).change();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue