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 calls to Page::new_optgroup() #8569

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afmenez
Copy link
Contributor

@afmenez afmenez commented Feb 25, 2025

Description

Fix the second param on calls to Page::new_optgroup(), which should be an L""

@yw4z
Copy link
Contributor

yw4z commented Feb 26, 2025

instead adding parentheses can you remove translation from icon names. i assume its not required to use translation on icon names. @Noisyfox what's your opinion on this.

@afmenez
Copy link
Contributor Author

afmenez commented Feb 26, 2025

The icon names are not translated, the L"" means a wchar literal.
What do you mean by "adding parentheses"?

Line line = Line{ L("Fan speed-up time"), optgroup->get_option("fan_speedup_time").opt.tooltip };
line.append_option(optgroup->get_option("fan_speedup_time"));
line.append_option(optgroup->get_option("fan_speedup_overhangs"));
optgroup->append_line(line);
optgroup->append_single_option_line("fan_kickstart");

optgroup = page->new_optgroup(L("Extruder Clearance"), "param_extruder_clearence");
optgroup = page->new_optgroup(L("Extruder Clearance"), L"param_extruder_clearence");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this should be L"param_extruder_clearance", but I am not sure where else this name should be fixed.

@yw4z
Copy link
Contributor

yw4z commented Feb 26, 2025

i was about to send this commit with removing all L on icon names and its already works as normal, you can see my comment in in here #7602 (comment) . just waiting respond for correct way

@afmenez
Copy link
Contributor Author

afmenez commented Feb 26, 2025

If the string conversion happens at compile time, I agree with you that all the L can be removed form all the icon names. If the conversion happens at run time, it's better to add the L on the ones that are missing.

@afmenez
Copy link
Contributor Author

afmenez commented Feb 26, 2025

Have you seen my comment about the "param_extruder_clearence" icon name?

@yw4z
Copy link
Contributor

yw4z commented Feb 27, 2025

its a typo mistake, if you want to fix that you should also fix icon name on images folder

@yw4z
Copy link
Contributor

yw4z commented Feb 27, 2025

icon visible in here
Screenshot-20250228025623

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