From d2f40438b9a6f396d385b91766193d9772f68d78 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 5 Dec 2021 00:25:23 +0100 Subject: [PATCH] Allow notification from disk writer jobs (#2143). --- src/lib/copy_to_drive_job.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/copy_to_drive_job.h b/src/lib/copy_to_drive_job.h index 1a1a99f44..cb91195c2 100644 --- a/src/lib/copy_to_drive_job.h +++ b/src/lib/copy_to_drive_job.h @@ -27,9 +27,12 @@ class CopyToDriveJob : public Job public: CopyToDriveJob (boost::filesystem::path dcp, Drive drive, Nanomsg& nanomsg); - std::string name () const; - std::string json_name () const; - void run (); + std::string name () const override; + std::string json_name () const override; + void run () override; + bool enable_notify () const override { + return true; + } private: void count (boost::filesystem::path dir, uint64_t& total_bytes); -- 2.30.2