Fix for LoRa menu not showing custom image when a theme is set #1979
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes LoRa menu custom theme images not loading. The drawIconImg() function was only calling the default icon drawer instead of loading theme images like other menus.
Proposed ChangesUpdated LoRaMenu::drawIconImg() to check if LoRa theme is enabledAdded proper theme image loading using bruceConfig.getThemeItemImg()Maintains fallback to default drawn icon when no theme image configuredTypes of Changes
Changes in the way custom images are handled and loaded and fall back to default icon if no theme is selected or no image is assigned to LoRa menu on the theme .json
Verification
-set a custom theme in settings
-go to main menu and navigate to LoRa menu
-the custom image should show
TestingTested with "lora": "LoRa.png" - custom image loads correctlyTested with "lora": true - default drawn icon showsConsistent with other menu implementations (EthernetMenu, NRF24Menu)Linked IssuesUser-Facing Change
LoRa custom theme image should now show when a theme is selected and it includes an image for the LoRa menu
Further CommentsJSON key must be lowercase "lora" to match theme struct fieldFixes issue where LoRa menu was the only menu not loading custom theme images