-
Notifications
You must be signed in to change notification settings - Fork 817
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
Feature/do not sync enc folders if e2ee is not setup #5258
Feature/do not sync enc folders if e2ee is not setup #5258
Conversation
53185f8
to
e4063a7
Compare
@tobiasKaminsky See the video in the description |
@nimishavijay @jancborchardt What do you think? Qt widgets are not really that customizable compared to QML, so, I did what was possible without adding too much code. Any critical remarks? |
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.
A few comments but nothing major
36ee635
to
33640b4
Compare
540f7c2
to
6190d8d
Compare
src/gui/accountsettings.cpp
Outdated
} | ||
} | ||
|
||
void AccountSettings::updateBlackListAndScheduleFolderSync(const QStringList &blackList, OCC::Folder *folder, const QStringList &foldersToRemoveFromBlacklist) |
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.
This method could be const
6190d8d
to
022512e
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5258 +/- ##
==========================================
- Coverage 57.70% 57.64% -0.07%
==========================================
Files 139 139
Lines 17577 17596 +19
==========================================
Hits 10143 10143
- Misses 7434 7453 +19
|
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.
Tiny comments :)
return; | ||
} | ||
// in case sync is already running - terminate it and start a new one | ||
const QMetaObject::Connection syncTerminatedConnection = connect(folder, &Folder::syncFinished, this, [this, blackList, folder, foldersToRemoveFromBlacklist]() { |
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.
actually, const auto
?
@@ -153,41 +155,49 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const | |||
return QVariant(); | |||
} | |||
case SubFolder: { | |||
const auto &x = static_cast<SubFolderInfo *>(index.internalPointer())->_subs.at(index.row()); | |||
const auto supportsSelectiveSync = x._folder && x._folder->supportsSelectiveSync(); | |||
const auto &subfolderInfo = static_cast<SubFolderInfo *>(index.internalPointer())->_subs.at(index.row()); |
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.
Awesome, so much better :D
Looks really great! I like the flow, it is really nice and intuitive! Some feedback about visuals:
What do you think? :) |
55a6819
to
2cf877d
Compare
…tomatically blacklist them. Remove from blacklist once the E2EE mnemonic is provided. Signed-off-by: alex-z <blackslayer4@gmail.com>
2cf877d
to
867249f
Compare
AppImage file: nextcloud-PR-5258-867249f339cc819a0f912acfa59fd02f74c8b407-x86_64.AppImage |
SonarCloud Quality Gate failed. |
@nimishavijay Apologies, I have only noticed your feedback after already merging it (we were in a bit of a rush to put it in). But, I guess most of your feedback can be implemented and is not very hard. Having said that, could you maybe create a new issue with your feedback in the description, we are going to implement it later as we will keep improving E2EE in the coming weeks. |
A screen recording of how this feature works now follows.
e2e_do_not_sync_encrypted_folders_without_mnemonic_entered.mp4