mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-09 15:15:59 +08:00
fix: 清除web缓存
This commit is contained in:
parent
6dee04f5e8
commit
c27c922d0b
@ -1238,10 +1238,15 @@ void Widget::on_pushButton_clearWebCache_clicked()
|
||||
{
|
||||
QtConcurrent::run([=]()
|
||||
{
|
||||
|
||||
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||
QDir cacheDir(dataLocal );
|
||||
cacheDir.removeRecursively(); });
|
||||
qDebug() << dataLocal;
|
||||
QDir dataDir(dataLocal);
|
||||
dataDir.removeRecursively();
|
||||
dataLocal = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||
qDebug() << dataLocal;
|
||||
QDir cacheDir(dataLocal);
|
||||
cacheDir.removeRecursively();
|
||||
});
|
||||
}
|
||||
|
||||
quint64 Widget::dirFileSize(const QString &path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user