mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
AK: Make "foo"_string infallible
Stop worrying about tiny OOMs. Work towards #20405.
This commit is contained in:
parent
db2a8725c6
commit
34344120f2
181 changed files with 626 additions and 630 deletions
|
@ -164,7 +164,7 @@ ErrorOr<void> MainWidget::setup()
|
|||
return;
|
||||
|
||||
m_run_script_action->set_enabled(false);
|
||||
m_statusbar->set_text(1, "Disconnected"_string.release_value_but_fixme_should_propagate_errors());
|
||||
m_statusbar->set_text(1, "Disconnected"_string);
|
||||
|
||||
if (m_connection_id.has_value()) {
|
||||
m_sql_client->disconnect(*m_connection_id);
|
||||
|
@ -245,7 +245,7 @@ ErrorOr<void> MainWidget::setup()
|
|||
|
||||
m_statusbar = find_descendant_of_type_named<GUI::Statusbar>("statusbar"sv);
|
||||
m_statusbar->segment(1).set_mode(GUI::Statusbar::Segment::Mode::Auto);
|
||||
m_statusbar->set_text(1, TRY("Disconnected"_string));
|
||||
m_statusbar->set_text(1, "Disconnected"_string);
|
||||
m_statusbar->segment(2).set_mode(GUI::Statusbar::Segment::Mode::Fixed);
|
||||
m_statusbar->segment(2).set_fixed_width(font().width("Ln 0,000 Col 000"sv) + font().max_glyph_width());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue