-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align sync status and icon #8858
Conversation
b279882
to
5989c12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes the "works as designed" behaviour explained in #2432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good change 👍
5989c12
to
8dc08e6
Compare
8dc08e6
to
02fc890
Compare
case SyncResult::Success: | ||
if (status.hasUnresolvedConflicts()) { | ||
return syncStateIcon(SyncResult { SyncResult::Problem }, sysTray, sysTrayMenuVisible); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to do something about the formatter here. The placing of these braces is misleading. I needed to read it a second time to see that it's constructing a new object.
@@ -101,7 +101,9 @@ class OWNCLOUDSYNC_EXPORT Theme : public QObject | |||
/** | |||
* get an sync state icon | |||
*/ | |||
virtual QIcon syncStateIcon(SyncResult::Status, bool sysTray = false, bool sysTrayMenuVisible = false) const; | |||
QIcon syncStateIcon(const SyncResult &status, bool sysTray = false, bool sysTrayMenuVisible = false) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider renaming the first param to result
.
02fc890
to
cc5000e
Compare
Kudos, SonarCloud Quality Gate passed! |
I think this is a massive mistake - I have loads of deliberately ignored files and hidden files which I choose not to sync, so the client always shows the icon instead of success which is completely misleading. This should not happen where the 'errors' are warnings caused by specific user choices that are known about. |
Thanks Hannah - I think that discussion just confirms my point; this change is a huge step backwards. You say hidden files won't display the icon but all my errors are either hidden or ignored files and the icon DOES show so I'm afraid I have to respectively disagree with you. The icon should not be showing in this circumstance but it is. I've had to revert to 2.8.2 as 2.9.0 is now unusable for me with this 'enhancement' and from that discussion others feel the same. |
Can you check whether there is a file2.jpeg.owncloud on your server? Stuff like that used to happen in the past. |
With this change we will display the problem state if we have blacklisted errors.
This change also aligns the icon in the tray icon with the icon displayed for the folder state.