1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Piano: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:25:02 +02:00 committed by Andreas Kling
parent 5aadf00463
commit 377afff33a
2 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ SamplerWidget::SamplerWidget(TrackManager& track_manager)
return;
String error_string = m_track_manager.current_track().set_recorded_sample(open_path.value());
if (!error_string.is_empty()) {
GUI::MessageBox::show(window(), String::format("Failed to load WAV file: %s", error_string.characters()), "Error", GUI::MessageBox::Type::Error);
GUI::MessageBox::show(window(), String::formatted("Failed to load WAV file: {}", error_string.characters()), "Error", GUI::MessageBox::Type::Error);
return;
}
m_recorded_sample_name->set_text(open_path.value());