Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
connect(&_fileWatcher, &QFileSystemWatcher::fileChanged, this, &FileDetails::refreshFileDetails);
const auto folder = FolderMan::instance()->folderForPath(_localPath);
+ Q_ASSERT(folder);
const auto file = _localPath.mid(folder->cleanPath().length() + 1);
if (!folder->journalDb()->getFileRecord(file, &_fileRecord)) {
updateLockExpireString();
updateFileTagModel(folder);
+ _sharingAvailable = folder->accountState()->account()->capabilities().shareAPI();
+
Q_EMIT fileChanged();
}