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:
parent
6ef1ae7721
commit
79907fa388
1 changed files with 130 additions and 129 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue