From: Matthieu Gallien Date: Tue, 6 Jun 2023 16:16:43 +0000 (+0200) Subject: use a better user message for network errors X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~13^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f43c0b611653f59dc82e652d92f4f1e26d2f6139;p=nextcloud-desktop.git 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 --- 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)