mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-19 17:34:10 +02:00
Fix the hiddensync state in the UI + also sync hidden in cmd
This commit is contained in:
parent
309b0b6382
commit
d9f79215a7
@ -319,7 +319,7 @@ int main(int argc, char **argv)
|
|||||||
options.trustSSL = false;
|
options.trustSSL = false;
|
||||||
options.useNetrc = false;
|
options.useNetrc = false;
|
||||||
options.interactive = true;
|
options.interactive = true;
|
||||||
options.ignoreHiddenFiles = true;
|
options.ignoreHiddenFiles = false; // Default is to sync hidden files
|
||||||
options.nonShib = false;
|
options.nonShib = false;
|
||||||
options.restartTimes = 3;
|
options.restartTimes = 3;
|
||||||
options.uplimit = 0;
|
options.uplimit = 0;
|
||||||
|
@ -680,7 +680,7 @@ void AccountSettings::slotFolderWizardAccepted()
|
|||||||
|
|
||||||
/* take the value from the definition of already existing folders. All folders have
|
/* take the value from the definition of already existing folders. All folders have
|
||||||
* the same setting so far.
|
* the same setting so far.
|
||||||
* The default is to not sync hidden files
|
* The default is to sync hidden files
|
||||||
*/
|
*/
|
||||||
definition.ignoreHiddenFiles = folderMan->ignoreHiddenFiles();
|
definition.ignoreHiddenFiles = folderMan->ignoreHiddenFiles();
|
||||||
|
|
||||||
|
@ -1372,8 +1372,10 @@ QString FolderMan::findGoodPathForNewSyncFolder(const QString &basePath, const Q
|
|||||||
bool FolderMan::ignoreHiddenFiles() const
|
bool FolderMan::ignoreHiddenFiles() const
|
||||||
{
|
{
|
||||||
if (_folderMap.empty()) {
|
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();
|
return _folderMap.begin().value()->ignoreHiddenFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user