mobile: fix reading of cache dir

For some reason the flag to exclude . and .. breaks this functionality.
It works just fine without that flag, so let's just remove it.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-08-27 22:18:37 +00:00
parent d257a623fa
commit 8c644547fb
3 changed files with 3 additions and 2 deletions

View file

@ -2300,7 +2300,7 @@ void QMLManager::importCacheRepo(QString repo)
QStringList QMLManager::cloudCacheList() const
{
QDir localCacheDir(QString("%1/cloudstorage/").arg(system_default_directory()));
QStringList dirs = localCacheDir.entryList(QDir::NoDotAndDotDot);
QStringList dirs = localCacheDir.entryList();
QStringList result;
foreach(QString dir, dirs) {
QString originsDir = QString("%1/cloudstorage/%2/.git/refs/remotes/origin/").arg(system_default_directory()).arg(dir);