mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-18 16:44:52 +08:00
fix: don't remove the daemon cache dir
Change-Id: Icde3c4f5dbb54c2ae93712434f5d08def4e3c3bb
This commit is contained in:
@@ -154,18 +154,7 @@ UtilsAdapter::getLocalDataPath()
|
|||||||
const QString
|
const QString
|
||||||
UtilsAdapter::getCachePath()
|
UtilsAdapter::getCachePath()
|
||||||
{
|
{
|
||||||
const auto cacheDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
|
|||||||
Reference in New Issue
Block a user