diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-09 10:39:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-09 23:15:05 +0200 |
| commit | 33b14b1c003a19020b3c5f12e639d91140f1388d (patch) | |
| tree | b6bf3a21bce73729954b69be4f1b91f067be7ad4 | |
| parent | 767238a8abebbb2a2f8d1e91806131754b9c67fd (diff) | |
Fix wrapping of try-unmount dialogue on macOS (#1989).
| -rw-r--r-- | src/wx/try_unmount_dialog.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/try_unmount_dialog.cc b/src/wx/try_unmount_dialog.cc index ffa4af535..8a75a1376 100644 --- a/src/wx/try_unmount_dialog.cc +++ b/src/wx/try_unmount_dialog.cc @@ -25,16 +25,20 @@ #include <wx/wx.h> +static int constexpr width = 300; + + TryUnmountDialog::TryUnmountDialog (wxWindow* parent, wxString description) : wxDialog (parent, wxID_ANY, _("DCP-o-matic Disk Writer")) { auto sizer = new wxBoxSizer (wxVERTICAL); - auto text = new StaticText (this, wxEmptyString); + auto text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(width, -1)); sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); text->SetLabelMarkup ( wxString::Format(_("The drive <b>%s</b> is mounted.\n\nIt must be unmounted before DCP-o-matic can write to it.\n\nShould DCP-o-matic try to unmount it now?"), description) ); + text->Wrap(width); auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL); if (buttons) { |
