Formatting tweaks to unmount dialogue.
authorCarl Hetherington <cth@carlh.net>
Sat, 2 May 2020 23:16:36 +0000 (01:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 2 May 2020 23:16:36 +0000 (01:16 +0200)
src/wx/try_unmount_dialog.cc

index 2ca76527da34d0cba01537a4755ad0a328b6bd33..44d9709191e87007ae7895fc838a852f67ba49b6 100644 (file)
@@ -27,9 +27,13 @@ TryUnmountDialog::TryUnmountDialog (wxWindow* parent, wxString description)
        : wxDialog (parent, wxID_ANY, _("DCP-o-matic Disk Writer"))
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
        : wxDialog (parent, wxID_ANY, _("DCP-o-matic Disk Writer"))
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
-       wxStaticText* text = new StaticText (this, wxString::Format(_("The drive %s is mounted.\nIt must be unmounted before DCP-o-matic can write to it.  Should DCP-o-matic try to unmount it now?"), description));
+       wxStaticText* text = new StaticText (this, wxEmptyString);
        sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
 
        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)
+               );
+
        wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
        if (buttons) {
                sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder());
        wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
        if (buttons) {
                sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder());