Skip to content

fix(color): Deleting empty label caused EM/Hang#2392

Merged
pfeerick merged 2 commits intoEdgeTX:mainfrom
dlktdr:fix_2386
Sep 28, 2022
Merged

fix(color): Deleting empty label caused EM/Hang#2392
pfeerick merged 2 commits intoEdgeTX:mainfrom
dlktdr:fix_2386

Conversation

@dlktdr
Copy link
Collaborator

@dlktdr dlktdr commented Sep 28, 2022

Fixes #2386

Looks like I introduced this with removing YAML characters to prevent unwanted characters in the Label. When deleting labels, it does a rename of all the models labels to "". There was a check that was preventing this action because size was zero..

Ooops.

Edit: Went into autopilot on the last PR.. Should be put into 2.8

@pfeerick
Copy link
Member

Ouch! Yeah, sometimes a later check can come back to bite you! :) Prefered order is main, and then after at least one nightly build it'll get cherrypicked across to the RC branch (i.e. 2.8 in this case). So will switch the branch for the PR. ;)

@pfeerick pfeerick changed the base branch from 2.8 to main September 28, 2022 05:14
@pfeerick pfeerick added bug 🪲 Something isn't working color Related generally to color LCD radios labels Sep 28, 2022
@pfeerick pfeerick added this to the 2.8 milestone Sep 28, 2022
@pfeerick pfeerick linked an issue Sep 28, 2022 that may be closed by this pull request
1 task
@pfeerick pfeerick changed the title (fw) Fix 2386, deleting a label will cause a EM/Hang #2391 fix(color): Deleting empty label caused EM/Hang #2391 Sep 28, 2022
@pfeerick pfeerick changed the title fix(color): Deleting empty label caused EM/Hang #2391 fix(color): Deleting empty label caused EM/Hang Sep 28, 2022
@pfeerick pfeerick merged commit ac091b7 into EdgeTX:main Sep 28, 2022
pfeerick pushed a commit that referenced this pull request Oct 1, 2022
* If deleting a label, don't check size

* If rename to blank, do nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working color Related generally to color LCD radios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting model label causes freeze / EM

2 participants