Piano: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:25:02 +02:00 committed by Andreas Kling
commit 377afff33a
Notes: sideshowbarker 2024-07-19 02:00:59 +09:00
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());