diff options
author | Erik Verbruggen <erik@verbruggen.consulting> | 2021-12-02 20:52:43 +0300 |
---|---|---|
committer | Erik Verbruggen <erik@verbruggen.consulting> | 2021-12-03 15:20:24 +0300 |
commit | a3e713149a641f2f1cd59b9153a3c6286dd4b427 (patch) | |
tree | fb18009ea26093c13b479812461b1b3e9ac0654b | |
parent | 84a6c75642fcfe581601d4f5db0022a7d71ca1ae (diff) |
Add the folder UUID to the VfsSetupParamswork/rename-navigationPaneClsid
-rw-r--r-- | src/common/vfs.h | 4 | ||||
-rw-r--r-- | src/gui/folder.cpp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/common/vfs.h b/src/common/vfs.h index 7efde8ad7..f22ae92fa 100644 --- a/src/common/vfs.h +++ b/src/common/vfs.h @@ -16,6 +16,7 @@ #include <QObject> #include <QScopedPointer> #include <QSharedPointer> +#include <QUuid> #include <QVersionNumber> #include <memory> @@ -39,6 +40,9 @@ class SyncFileItem; /** Collection of parameters for initializing a Vfs instance. */ struct OCSYNC_EXPORT VfsSetupParams { + /// The UUID for the VFS location. + QUuid uuid; + /** The full path to the folder on the local filesystem * * Always ends with /. diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index c97406edc..9708be831 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -537,7 +537,8 @@ void Folder::startVfs() } VfsSetupParams vfsParams; - vfsParams.filesystemPath = path(); + vfsParams.uuid = uuid(); + vfsParams.filesystemPath = path(); // This is ignored by the macOS VFS plug-in vfsParams.remotePath = remotePathTrailingSlash(); vfsParams.account = _accountState->account(); vfsParams.journal = &_journal; |