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

Fix app name casing in UI #2365

Merged
merged 4 commits into from
Mar 5, 2024
Merged

Fix app name casing in UI #2365

merged 4 commits into from
Mar 5, 2024

Conversation

sidevesh
Copy link
Contributor

@sidevesh sidevesh commented Mar 4, 2024

Added DISPLAY_NAME which is just solaar with first letter capitalized, as should app names be.
Didn't add this to translation stuff since I see that Solaar is kept as is in all translations, so won't make a difference.

@@ -19,6 +19,7 @@
import sys as _sys

NAME = "solaar"
DISPLAY_NAME = "Solaar"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The display name should be derived from the name, not a separate constant. Even better, use only Solaar and then .lower() where a lower-case name is needed. There are already several places where .lower() is used.

@sidevesh
Copy link
Contributor Author

sidevesh commented Mar 5, 2024

@pfps made the changes, NAME is now Solaar and I am using .lower() wherever solaar is needed.

@pfps
Copy link
Collaborator

pfps commented Mar 5, 2024

Looks good.

Copy link
Collaborator

@pfps pfps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@pfps pfps merged commit 5ee1c6d into pwr-Solaar:master Mar 5, 2024
5 checks passed
@MattHag MattHag mentioned this pull request Mar 5, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants