Reserve size of some containers we are filling
This commit is contained in:
parent
812e3b5f03
commit
19dc6cadea
31 changed files with 317 additions and 209 deletions
|
|
@ -224,13 +224,13 @@ Cache::setup()
|
|||
// Previous location of the cache directory
|
||||
auto oldCache =
|
||||
QStringLiteral("%1/%2%3").arg(QStandardPaths::writableLocation(QStandardPaths::CacheLocation),
|
||||
QString::fromUtf8(localUserId_.toUtf8().toHex()),
|
||||
QString::fromUtf8(settings->profile().toUtf8().toHex()));
|
||||
QString::fromUtf8(localUserId_.toUtf8().toHex()),
|
||||
QString::fromUtf8(settings->profile().toUtf8().toHex()));
|
||||
|
||||
cacheDirectory_ =
|
||||
QStringLiteral("%1/%2%3").arg(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation),
|
||||
QString::fromUtf8(localUserId_.toUtf8().toHex()),
|
||||
QString::fromUtf8(settings->profile().toUtf8().toHex()));
|
||||
cacheDirectory_ = QStringLiteral("%1/%2%3").arg(
|
||||
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation),
|
||||
QString::fromUtf8(localUserId_.toUtf8().toHex()),
|
||||
QString::fromUtf8(settings->profile().toUtf8().toHex()));
|
||||
|
||||
bool isInitial = !QFile::exists(cacheDirectory_);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue