mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-30 01:54:40 +08:00
Escaping of ampersands in label texts (otherwise the ampersand is
processed as a hotkey prefix and not displayed at all). Solves visualization of the new profile names containing ampersands (Original Prusa Mini & Mini+) Also the text was not correcly converted from UTF8.
This commit is contained in:
parent
6beb493255
commit
3dd6d7e878
@ -1279,7 +1279,9 @@ void Tab::update_preset_description_line()
|
|||||||
} else if (parent == nullptr) {
|
} else if (parent == nullptr) {
|
||||||
description_line = _(L("Current preset is inherited from the default preset."));
|
description_line = _(L("Current preset is inherited from the default preset."));
|
||||||
} else {
|
} else {
|
||||||
description_line = _(L("Current preset is inherited from")) + ":\n\t" + parent->name;
|
std::string name = parent->name;
|
||||||
|
boost::replace_all(name, "&", "&&");
|
||||||
|
description_line = _(L("Current preset is inherited from")) + ":\n\t" + from_u8(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preset.is_default || preset.is_system)
|
if (preset.is_default || preset.is_system)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user