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

logo customization code autoformatted with 4 space indents and minor refactoring

This commit is contained in:
Kiripolszky Károly 2018-02-20 22:00:58 +01:00
parent 6ef1ae7721
commit 79907fa388

View file

@ -1879,7 +1879,9 @@ TABS.osd.initialize = function (callback) {
// replace logo
$('a.replace_logo').click(function() {
if (!GUI.connect_lock) { // button disabled while flashing is in progress
if (GUI.connect_lock) { // button disabled while flashing is in progress
return;
}
openLogoImage().then(function(ctx) {
FONT.replaceLogoFromImage(ctx);
FONT.logoPreview($logoPreview);
@ -1887,7 +1889,6 @@ TABS.osd.initialize = function (callback) {
console.error("error loading image:", error);
GUI.log(error);
});
}
});
//Switch all elements