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

Allow selective sync of spaces in folder wizard #11044

Merged
merged 3 commits into from
Jul 21, 2023

Conversation

fmoc
Copy link
Contributor

@fmoc fmoc commented Jul 20, 2023

Closes #10596.

@fmoc fmoc added this to the Desktop Client 5.0 milestone Jul 20, 2023
@fmoc fmoc requested review from TheOneRing and a team July 20, 2023 14:26
@@ -263,8 +264,8 @@ void SelectiveSyncWidget::slotItemExpanded(QTreeWidgetItem *item)
QString dir = item->data(0, Qt::UserRole).toString();
if (dir.isEmpty())
return;
// TODO: legacy
PropfindJob *job = new PropfindJob(_account, _account->davUrl(), _folderPath + dir, PropfindJob::Depth::One, this);
Q_ASSERT(!_davUrl.isEmpty());
Copy link
Contributor

Choose a reason for hiding this comment

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

How about a getter with that check?

Copy link
Contributor Author

@fmoc fmoc Jul 21, 2023

Choose a reason for hiding this comment

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

Would save a tiny bit of code duplication, but we cannot enforce the use of that getter over the variable anyway...

Plus, I'm not sure at this point whether we might have to provide such a getter for outside use in the future. We already have a public setter. Then, you probably can't just assert the value is not empty, I guess.

Copy link
Contributor

Choose a reason for hiding this comment

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

There are private getters :D
And in general I'd say we should always use getters instead of raw vars.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, if you prefer it...

Copy link
Contributor

Choose a reason for hiding this comment

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

Qt codestyle does not use get as getter prefix

@fmoc fmoc requested a review from TheOneRing July 21, 2023 11:57
@TheOneRing
Copy link
Contributor

Can you check whether the ignore list computes the correct patterns?
image
Hidden files should actually not appear afaik.

@fmoc fmoc merged commit 057a416 into master Jul 21, 2023
@fmoc fmoc deleted the work/folderwizard-selective-sync branch July 21, 2023 14:45
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.

Wizard: Implement selective sync for spaces
2 participants