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:
parent
5aadf00463
commit
377afff33a
2 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue