mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-16 21:45:24 +02:00
fix: don't remove the daemon cache dir
Change-Id: Icde3c4f5dbb54c2ae93712434f5d08def4e3c3bb
This commit is contained in:
parent
873c4c72b9
commit
861c42e3d5
1 changed files with 1 additions and 12 deletions
|
@ -154,18 +154,7 @@ UtilsAdapter::getLocalDataPath()
|
|||
const QString
|
||||
UtilsAdapter::getCachePath()
|
||||
{
|
||||
const auto cacheDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
|
||||
|
||||
// Remove old mistaken cache dir.
|
||||
// NOTE: this can be removed once we give a chance for users to upgrade.
|
||||
QDir oldCacheDir(cacheDir);
|
||||
oldCacheDir.cdUp();
|
||||
oldCacheDir.setPath(oldCacheDir.absolutePath() + "/jami");
|
||||
if (oldCacheDir.exists()) {
|
||||
oldCacheDir.removeRecursively();
|
||||
}
|
||||
|
||||
return cacheDir;
|
||||
return QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
|
||||
}
|
||||
|
||||
QString
|
||||
|
|
Loading…
Add table
Reference in a new issue