Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brandingBannerDisplayText Not Respected #139

Closed
seaneldridge7 opened this issue Feb 14, 2024 · 5 comments
Closed

brandingBannerDisplayText Not Respected #139

seaneldridge7 opened this issue Feb 14, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@seaneldridge7
Copy link

Before submitting a Setup Your Mac bug report, please review the open swiftDialog issues to help determine the source of the issue.

Describe the bug
Despite having brandingBannerDisplayText="false" the text still appears over the top of a custom branding banner.

To Reproduce

  • Download a fresh copy of the script, add a custom image to line 109 and set line 110 to false.

Expected behavior
I wouldn't expect to see anything other than the custom branding bannner

Code/log output
brandingBanner="/Users/Shared/Resources/Wallpapers/custom.png" brandingBannerDisplayText="false"

Screenshots
image

Environment (please complete the following information):

  • 14.3
  • 1.12.10 & 1.14.0

Additional context
This problem manifested itself at the same time as the update to swiftDialog 2.4.1

@seaneldridge7 seaneldridge7 added the bug Something isn't working label Feb 14, 2024
@drtaru
Copy link
Contributor

drtaru commented Feb 14, 2024

Hi @seaneldridge7,
Are you using the WelcomeDialog to collect userInput?
If yes, does the banner display correctly there, with no text?

@drtaru drtaru assigned drtaru and unassigned dan-snelson Feb 14, 2024
@seaneldridge7
Copy link
Author

Hi @seaneldridge7, Are you using the WelcomeDialog to collect userInput? If yes, does the banner display correctly there, with no text?

Hi @drtaru, no we're not using that in our workflow. However, if I take a fresh copy of the script and only modify those two lines with a custom banner and set the text to false, the same problem occurs at the userInput screen.

Screenshot 2024-02-14 at 2 26 55 PM

@drtaru
Copy link
Contributor

drtaru commented Feb 14, 2024

Perfect, thanks, that helps me narrow it down.
I will dig in!

@drtaru
Copy link
Contributor

drtaru commented Feb 14, 2024

Found the issue, seems like if bannerText is set to nothing "" then the title parameter takes over
The fix is to set bannerText=" " instead of bannerText="" when brandingBannerDisplayText="false"
PR #140 should fix this, you can wait for it to be merged or test the changes yourself now.

@dan-snelson
Copy link
Collaborator

This should have been closed back in February.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants