mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02:00
LibGUI: Parse ampersand string for tooltips only in GUI::Action
It seems unnecessary to pass every tooltip string through Gfx::parse_ampersand_string() when only Action tooltips need to parse a title.
This commit is contained in:
committed by
Andreas Kling
parent
aea244efe1
commit
16defb4806
Notes:
sideshowbarker
2024-07-17 03:16:02 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/16defb4806 Pull-request: https://github.com/SerenityOS/serenity/pull/21020 Reviewed-by: https://github.com/AtkinsSJ
@@ -67,7 +67,7 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window)
|
||||
|
||||
for (auto const& category : s_emoji_groups) {
|
||||
auto name = Unicode::emoji_group_to_string(category.group);
|
||||
auto tooltip = name.replace("&"sv, "&&"sv, ReplaceMode::FirstOnly);
|
||||
DeprecatedString tooltip = name;
|
||||
|
||||
auto set_filter_action = Action::create_checkable(
|
||||
category.representative_emoji,
|
||||
|
||||
Reference in New Issue
Block a user