mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Added method to drop all sync folder definitions.
This commit is contained in:
parent
d55900561b
commit
f219b0613c
@ -331,6 +331,13 @@ void FolderMan::slotRemoveFolder( const QString& alias )
|
||||
removeFolder(alias);
|
||||
}
|
||||
|
||||
void FolderMan::removeAllFolderDefinitions()
|
||||
{
|
||||
foreach( Folder *f, _folderMap.values() ) {
|
||||
removeFolder( f->alias() );
|
||||
}
|
||||
}
|
||||
|
||||
// remove a folder from the map. Should be sure n
|
||||
void FolderMan::removeFolder( const QString& alias )
|
||||
{
|
||||
|
||||
@ -68,6 +68,11 @@ public:
|
||||
*/
|
||||
Folder* setupFolderFromConfigFile(const QString & );
|
||||
|
||||
/**
|
||||
* wipes all folder defintions. No way back!
|
||||
*/
|
||||
void removeAllFolderDefinitions();
|
||||
|
||||
signals:
|
||||
/**
|
||||
* signal to indicate a folder named by alias has changed its sync state.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user