++r;
add_label_to_sizer (_sizer, this, _("Filename"), true, wxGBPosition(r, 0));
- checked_set (_recipient_file, recipient_file.get_value_or(""));
_recipient_file = new wxStaticText(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(600, -1), wxST_ELLIPSIZE_MIDDLE | wxST_NO_AUTORESIZE);
+ set_recipient_file(recipient_file.get_value_or(""));
_sizer->Add (_recipient_file, wxGBPosition(r, 1), wxDefaultSpan, wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_Y_GAP);
++r;
return;
}
set_recipient (c.leaf ());
- checked_set (_recipient_file, file.string());
+ set_recipient_file(file.string());
} catch (dcp::MiscError& e) {
error_dialog (this, _("Could not read certificate file."), std_to_wx(e.what()));
}
auto dialog = make_wx<DownloadCertificateDialog>(this);
if (dialog->ShowModal() == wxID_OK) {
set_recipient(dialog->certificate());
- checked_set(_recipient_file, dialog->url());
+ set_recipient_file(dialog->url());
}
setup_sensitivity ();
}
_sizer->Layout ();
}
}
+
+
+void
+ScreenDialog::set_recipient_file(string file)
+{
+ checked_set(_recipient_file, file);
+}
+
void download_recipient ();
void setup_sensitivity ();
void set_recipient (boost::optional<dcp::Certificate>);
+ void set_recipient_file(std::string file);
void set_trusted_devices (std::vector<TrustedDevice> d) {
_trusted_devices = d;