summaryrefslogtreecommitdiff
path: root/src/wx/download_certificate_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-28 00:40:52 +0200
committerCarl Hetherington <cth@carlh.net>2024-10-11 21:45:04 +0200
commit2bd7721548534b14e98a9d9d55a22e7922629b92 (patch)
treeaf2a4fa07cfdb689e315849c89b5a3ff94af2737 /src/wx/download_certificate_panel.cc
parent58735d74bec27a45081b478b1ee9057a2a7e7cde (diff)
Add some wxYield()s.
One or more of these improve GUI responsiveness when downloading certificates and make it less likely that GNOME complains that DCP-o-matic has hung.
Diffstat (limited to 'src/wx/download_certificate_panel.cc')
-rw-r--r--src/wx/download_certificate_panel.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/download_certificate_panel.cc b/src/wx/download_certificate_panel.cc
index 3f1509f60..f3721fec6 100644
--- a/src/wx/download_certificate_panel.cc
+++ b/src/wx/download_certificate_panel.cc
@@ -105,6 +105,7 @@ DownloadCertificatePanel::download ()
/* Hack: without this the SetLabel() above has no visible effect */
wxMilliSleep (200);
+ wxYield();
signal_manager->when_idle (boost::bind(&DownloadCertificatePanel::do_download, this));
}