| 438 | } |
| 439 | |
| 440 | void OnBrowserFormatButton(wxCommandEvent&) override |
| 441 | { |
| 442 | FormatDialog d(this, wxID_ANY); |
| 443 | d.volumeNameText->SetFocus(); |
| 444 | d.buttons_OK->SetDefault(); |
| 445 | if (d.ShowModal() != wxID_OK) |
| 446 | return; |
| 447 | |
| 448 | auto volumeName = d.volumeNameText->GetValue().ToStdString(); |
| 449 | auto quickFormat = d.quickFormatCheckBox->GetValue(); |
| 450 | QueueJob( |
| 451 | [this, volumeName, quickFormat]() |
| 452 | { |
| 453 | _filesystem->discardChanges(); |
| 454 | _filesystem->create(quickFormat, volumeName); |
| 455 | |
| 456 | runOnUiThread( |
| 457 | [&]() |
| 458 | { |
| 459 | RepopulateBrowser(); |
| 460 | }); |
| 461 | }); |
| 462 | } |
| 463 | |
| 464 | void OnBrowserFilenameChanged(wxDataViewEvent& event) override |
| 465 | { |
nothing calls this directly
no test coverage detected