/*
- 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.
#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>
{
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));
+}