1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-25 19:15:47 +02:00

Fix the hiddensync state in the UI + also sync hidden in cmd

This commit is contained in:
Tobia De Koninck 2018-08-28 11:24:36 +02:00
parent 309b0b6382
commit d9f79215a7
3 changed files with 5 additions and 3 deletions

View File

@ -319,7 +319,7 @@ int main(int argc, char **argv)
options.trustSSL = false;
options.useNetrc = false;
options.interactive = true;
options.ignoreHiddenFiles = true;
options.ignoreHiddenFiles = false; // Default is to sync hidden files
options.nonShib = false;
options.restartTimes = 3;
options.uplimit = 0;

View File

@ -680,7 +680,7 @@ void AccountSettings::slotFolderWizardAccepted()
/* take the value from the definition of already existing folders. All folders have
* the same setting so far.
* The default is to not sync hidden files
* The default is to sync hidden files
*/
definition.ignoreHiddenFiles = folderMan->ignoreHiddenFiles();

View File

@ -1372,8 +1372,10 @@ QString FolderMan::findGoodPathForNewSyncFolder(const QString &basePath, const Q
bool FolderMan::ignoreHiddenFiles() const
{
if (_folderMap.empty()) {
return true;
// Currently no folders in the manager -> return default
return false;
}
// Since the hiddenFiles settings is the same for all folders, just return the settings of the first folder
return _folderMap.begin().value()->ignoreHiddenFiles();
}