From f43c0b611653f59dc82e652d92f4f1e26d2f6139 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 6 Jun 2023 18:16:43 +0200 Subject: [PATCH] use a better user message for network errors tell users this is a network error and the client wll retry automatically Signed-off-by: Matthieu Gallien --- src/gui/tray/activitylistmodel.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp index 658eb7936..a917a580a 100644 --- a/src/gui/tray/activitylistmodel.cpp +++ b/src/gui/tray/activitylistmodel.cpp @@ -559,8 +559,12 @@ void ActivityListModel::addEntriesToActivityList(const ActivityList &activityLis void ActivityListModel::addErrorToActivityList(const Activity &activity, const ErrorType type) { qCInfo(lcActivity) << "Error successfully added to the notification list: " << type << activity._message << activity._subject << activity._syncResultStatus << activity._syncFileItemStatus; - addEntriesToActivityList({activity}); - _notificationErrorsLists.prepend(activity); + auto modifiedActivity = activity; + if (type == ErrorType::NetworkError) { + modifiedActivity._subject = tr("Network error occurred: client will retry syncing."); + } + addEntriesToActivityList({modifiedActivity}); + _notificationErrorsLists.prepend(modifiedActivity); } void ActivityListModel::addIgnoredFileToList(const Activity &newActivity) -- 2.30.2