-
Notifications
You must be signed in to change notification settings - Fork 806
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
Bugfix. Take root folder's files size into account when displaying the total size in selective sync dialog. #4532
Bugfix. Take root folder's files size into account when displaying the total size in selective sync dialog. #4532
Conversation
@mgallien FYI: The model of the SelectiveSyncWidget only contains a tree of folders (subfolders) with folder name and size, but, no information for files. I've tried to make the PR small and not affect the model. Let me know if you have a better idea. |
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 am confused
in the screenshot I have seen the leaf folder have their size based only on their content
this PR is not really changing this ?
from user point of view the tree to select folder is a bit hard to use as you have not really a way to see how much space will be used by the selected folders
when you close this tree selector dialog, the computed size is great and that is working well
@@ -288,6 +290,19 @@ void SelectiveSyncWidget::slotUpdateDirectories(QStringList list) | |||
root->setExpanded(true); | |||
} | |||
|
|||
void SelectiveSyncWidget::slotUpdateRootFolderFilesSize(const QStringList &subfolders) | |||
{ | |||
const auto job = qobject_cast<LsColJob *>(sender()); |
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.
please add a check that job
is not null
eff821a
to
0a43c18
Compare
/backport to stable-3.5 |
/rebase |
…e total size in selective sync dialog. Signed-off-by: alex-z <blackslayer4@gmail.com>
0a43c18
to
101a92f
Compare
Kudos, SonarCloud Quality Gate passed! |
AppImage file: Nextcloud-PR-4532-101a92faf395cd2b22cb45ac4d543c6779a995e2-x86_64.AppImage |
Signed-off-by: alex-z blackslayer4@gmail.com