Skip to content
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

Merged
merged 3 commits into from Oct 28, 2021
Merged

ShareLinkWidget #3863

merged 3 commits into from Oct 28, 2021

Conversation

camilasan
Copy link
Member

Since I did #3794 and #3793, I thought I could clean a bit ShareLinkWidget... let me know what you think.

Copy link

@FlexW FlexW left a 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.

src/gui/sharelinkwidget.cpp Outdated Show resolved Hide resolved
src/gui/sharelinkwidget.cpp Outdated Show resolved Hide resolved
src/gui/sharelinkwidget.cpp Outdated Show resolved Hide resolved
src/gui/sharelinkwidget.cpp Outdated Show resolved Hide resolved
src/gui/sharelinkwidget.cpp Outdated Show resolved Hide resolved
@Dimon4eg
Copy link
Contributor

Dimon4eg commented Oct 5, 2021

PR title isn't clear

src/gui/sharelinkwidget.h Outdated Show resolved Hide resolved
src/gui/sharelinkwidget.cpp Show resolved Hide resolved
src/gui/sharelinkwidget.cpp Show resolved Hide resolved
@camilasan camilasan force-pushed the bugfix/share-dialog branch 2 times, most recently from 19832c1 to f160744 Compare October 12, 2021 15:02
@camilasan
Copy link
Member Author

/rebase

@camilasan
Copy link
Member Author

/rebase

src/gui/sharelinkwidget.h Outdated Show resolved Hide resolved
src/gui/sharelinkwidget.h Outdated Show resolved Hide resolved
@camilasan camilasan force-pushed the bugfix/share-dialog branch 2 times, most recently from f4e5f23 to 8b2cb8d Compare October 26, 2021 10:03
@mgallien
Copy link
Collaborator

@camilasan looks good for me
can you clean history ?

@@ -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)
Copy link
Collaborator

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?

Copy link
Collaborator

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

@camilasan
Copy link
Member Author

@camilasan looks good for me can you clean history ?

Please check if this is a good enough cleaning.

Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine thanks

@mgallien
Copy link
Collaborator

/rebase

Camila added 3 commits October 28, 2021 12:59
- 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 <hello@camila.codes>
Even after removing note from share link,
the previous text was being displayed.

Signed-off-by: Camila <hello@camila.codes>
Signed-off-by: Camila <hello@camila.codes>
@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-3863-d68b8604ac65dace235b1ca32f99bd328c101224-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit 9281350 into master Oct 28, 2021
@mgallien mgallien deleted the bugfix/share-dialog branch October 28, 2021 13:47
@mgallien mgallien added this to the 3.4.0 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants