File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,15 @@ class ProgressEventData : public EventData {
4444 uint64_t GetCompleted () const { return m_completed; }
4545 uint64_t GetTotal () const { return m_total; }
4646 std::string GetMessage () const {
47- std::string message = m_title;
48- if (!m_details.empty ()) {
49- message.append (" : " );
50- message.append (m_details);
51- }
52- return message;
47+ if (m_completed == 0 ) {
48+ std::string message = m_title;
49+ if (!m_details.empty ()) {
50+ message.append (" : " );
51+ message.append (m_details);
52+ }
53+ return message;
54+ } else
55+ return !m_details.empty () ? m_details : std::string ();
5356 }
5457 const std::string &GetTitle () const { return m_title; }
5558 const std::string &GetDetails () const { return m_details; }
You can’t perform that action at this time.
0 commit comments