diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-14 23:23:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-15 10:57:06 +0100 |
| commit | c0d3ccb11d1bc31767a431c72f99e4a84c26b194 (patch) | |
| tree | a67617ccd7c8091c39be10c960409357620260a3 /src/wx/download_certificate_panel.cc | |
| parent | 10b6c135f34b9d5168142d0a8c3e06f4d91dae4b (diff) | |
Move some stuff into DownloadCertificatePanel; add name().
Diffstat (limited to 'src/wx/download_certificate_panel.cc')
| -rw-r--r-- | src/wx/download_certificate_panel.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/wx/download_certificate_panel.cc b/src/wx/download_certificate_panel.cc index 4052e44a6..0c78901eb 100644 --- a/src/wx/download_certificate_panel.cc +++ b/src/wx/download_certificate_panel.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -20,6 +20,7 @@ #include "wx_util.h" #include "download_certificate_panel.h" +#include "lib/signal_manager.h" #include <dcp/util.h> #include <dcp/exceptions.h> #include <boost/bind.hpp> @@ -62,3 +63,14 @@ DownloadCertificatePanel::certificate () const { return _certificate; } + +void +DownloadCertificatePanel::download (wxStaticText* message) +{ + message->SetLabel (_("Downloading certificate")); + + /* Hack: without this the SetLabel() above has no visible effect */ + wxMilliSleep (200); + + signal_manager->when_idle (boost::bind (&DownloadCertificatePanel::do_download, this, message)); +} |
