mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Respond to folder creation at specific creation path on macOS
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
30ce2eab02
commit
69d73d1333
@ -458,7 +458,9 @@ void AccountSettings::slotOpenMakeFolderDialog()
|
||||
#ifdef Q_OS_MAC
|
||||
// The macOS FolderWatcher cannot detect file and folder changes made by the watching process -- us.
|
||||
// So we need to manually invoke the slot that is called by watched folder changes.
|
||||
connect(folderCreationDialog, &QDialog::finished, this, [folder, fileName] { folder->slotWatchedPathChanged(fileName, Folder::ChangeReason::Other); });
|
||||
connect(folderCreationDialog, &FolderCreationDialog::folderCreated, this, [folder, fileName](const QString &fullFolderPath) {
|
||||
folder->slotWatchedPathChanged(fullFolderPath, Folder::ChangeReason::Other);
|
||||
});
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user