mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Userland: Prefer _string
over _short_string
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
parent
a5edc9cdfc
commit
3f35ffb648
198 changed files with 684 additions and 684 deletions
|
@ -86,7 +86,7 @@ private:
|
|||
m_root_container->set_layout<GUI::VerticalBoxLayout>(4, 0);
|
||||
m_root_container->set_frame_style(Gfx::FrameStyle::Window);
|
||||
|
||||
m_percent_box = m_root_container->add<GUI::CheckBox>("\xE2\x84\xB9"_short_string);
|
||||
m_percent_box = m_root_container->add<GUI::CheckBox>("\xE2\x84\xB9"_string);
|
||||
m_percent_box->set_tooltip(show_percent() ? "Hide percent" : "Show percent");
|
||||
m_percent_box->set_checked(show_percent());
|
||||
m_percent_box->on_checked = [&](bool show_percent) {
|
||||
|
@ -109,7 +109,7 @@ private:
|
|||
update();
|
||||
};
|
||||
|
||||
m_mute_box = m_root_container->add<GUI::CheckBox>("\xE2\x9D\x8C"_short_string);
|
||||
m_mute_box = m_root_container->add<GUI::CheckBox>("\xE2\x9D\x8C"_string);
|
||||
m_mute_box->set_checked(m_audio_muted);
|
||||
m_mute_box->set_tooltip(m_audio_muted ? "Unmute" : "Mute");
|
||||
m_mute_box->on_checked = [&](bool is_muted) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue