Report progress of audio jobs.
authorCarl Hetherington <cth@carlh.net>
Sun, 27 May 2018 22:16:12 +0000 (23:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 27 May 2018 22:16:12 +0000 (23:16 +0100)
src/wx/job_view.cc

index 9a1a12ca72a0fc3b45a10f8c5f61cd1f65db7788..d0086ff81aae2acbbe332164f36489355b5f9a0f 100644 (file)
@@ -26,6 +26,7 @@
 #include "lib/config.h"
 #include "lib/send_notification_email_job.h"
 #include "lib/transcode_job.h"
+#include "lib/analyse_audio_job.h"
 #include <wx/wx.h>
 
 using std::string;
@@ -133,7 +134,7 @@ JobView::finished ()
                _details->Enable (true);
        }
 
-       if (dynamic_pointer_cast<TranscodeJob>(_job) && _notify->GetValue()) {
+       if ((dynamic_pointer_cast<TranscodeJob>(_job) || dynamic_pointer_cast<AnalyseAudioJob>(_job)) && _notify->GetValue()) {
                if (Config::instance()->notification(Config::MESSAGE_BOX)) {
                        wxMessageBox (std_to_wx(_job->name() + ": " + _job->status()), _("DCP-o-matic"), wxICON_INFORMATION);
                }