Skip to content

Commit

Permalink
Overwrite the user exclude list when the client is branded.
Browse files Browse the repository at this point in the history
Enforce specific sync-exclude file to all users.

Signed-off-by: Camila Ayres <hello@camilasan.com>
  • Loading branch information
camilasan committed Jan 29, 2025
1 parent ca08119 commit 47e3e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/configfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ void ConfigFile::setupDefaultExcludeFilePaths(ExcludedFiles &excludedFiles)
if (!QFile::exists(userList)) {
qCInfo(lcConfigFile) << "User defined ignore list does not exist:" << userList;

if (QFile::exists(legacyList) && QFile::copy(legacyList, userList)) {
if (!Theme::instance()->isBranded() && QFile::exists(legacyList) && QFile::copy(legacyList, userList)) {
qCInfo(lcConfigFile) << "Migrating legacy list" << legacyList << "to user list" << userList;

} else if (QFile::copy(systemList, userList)) {
Expand Down

0 comments on commit 47e3e21

Please sign in to comment.