mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibGUI+Userland: Port Labels to String
This commit is contained in:
parent
3d53dc8228
commit
91bafc2653
92 changed files with 240 additions and 242 deletions
|
@ -32,7 +32,7 @@ GitCommitDialog::GitCommitDialog(GUI::Window* parent)
|
|||
auto line = m_message_editor->cursor().line() + 1;
|
||||
auto col = m_message_editor->cursor().column();
|
||||
|
||||
m_line_and_col_label->set_text(DeprecatedString::formatted("Line: {}, Col: {}", line, col));
|
||||
m_line_and_col_label->set_text(String::formatted("Line: {}, Col: {}", line, col).release_value_but_fixme_should_propagate_errors());
|
||||
};
|
||||
|
||||
m_commit_button->set_enabled(!m_message_editor->text().is_empty() && on_commit);
|
||||
|
|
|
@ -113,18 +113,18 @@ void NewProjectDialog::update_dialog()
|
|||
m_input_valid = true;
|
||||
|
||||
if (project_template) {
|
||||
m_description_label->set_text(project_template->description());
|
||||
m_description_label->set_text(String::from_deprecated_string(project_template->description()).release_value_but_fixme_should_propagate_errors());
|
||||
} else {
|
||||
m_description_label->set_text("Select a project template to continue.");
|
||||
m_description_label->set_text("Select a project template to continue."_string.release_value_but_fixme_should_propagate_errors());
|
||||
m_input_valid = false;
|
||||
}
|
||||
|
||||
auto maybe_project_path = get_project_full_path();
|
||||
|
||||
if (maybe_project_path.has_value()) {
|
||||
m_full_path_label->set_text(maybe_project_path.value());
|
||||
m_full_path_label->set_text(String::from_deprecated_string(maybe_project_path.value()).release_value_but_fixme_should_propagate_errors());
|
||||
} else {
|
||||
m_full_path_label->set_text("Invalid name or creation directory.");
|
||||
m_full_path_label->set_text("Invalid name or creation directory."_string.release_value_but_fixme_should_propagate_errors());
|
||||
m_input_valid = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue