-
Notifications
You must be signed in to change notification settings - Fork 816
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
ShareLinkWidget #3863
ShareLinkWidget #3863
Conversation
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.
Overall I think it's nice :) I just have some nitpicks.
ff1e0c9
to
78c2990
Compare
PR title isn't clear |
19832c1
to
f160744
Compare
/rebase |
f160744
to
3aecf0d
Compare
/rebase |
3aecf0d
to
7eafdd8
Compare
f4e5f23
to
8b2cb8d
Compare
@camilasan looks good for me |
@@ -628,7 +600,7 @@ void ShareLinkWidget::slotLinkContextMenuActionTriggered(QAction *action) | |||
} | |||
} | |||
|
|||
void ShareLinkWidget::slotServerError(int code, const QString &message) | |||
void ShareLinkWidget::slotServerError(const int code, const QString &message) |
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.
@camilasan Why are these const
needed?
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.
they are not needed
a const
is not usually needed but nice to have to improve readability
8b2cb8d
to
bb0a7b8
Compare
Please check if this is a good enough cleaning. |
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.
looks fine thanks
/rebase |
- Remove unecessary call to setupUiOptions after saving share password. - Slot to create label: do not set it if nothing changed. - Refactor showPasswordOptions, toggle/PasswordOptions/ExpireDateOptions/NoteOptions. - Add const, auto and {} whenever possible. - Refactor slotToggleButtonAnimation => toggleButtonAnimation. Signed-off-by: Camila <[email protected]>
Even after removing note from share link, the previous text was being displayed. Signed-off-by: Camila <[email protected]>
Signed-off-by: Camila <[email protected]>
bb0a7b8
to
d68b860
Compare
SonarCloud Quality Gate failed. |
AppImage file: Nextcloud-PR-3863-d68b8604ac65dace235b1ca32f99bd328c101224-x86_64.AppImage |
Since I did #3794 and #3793, I thought I could clean a bit ShareLinkWidget... let me know what you think.