mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-23 11:32:21 +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([=]()
|
QtConcurrent::run([=]()
|
||||||
{
|
{
|
||||||
|
|
||||||
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||||
QDir cacheDir(dataLocal );
|
qDebug() << dataLocal;
|
||||||
cacheDir.removeRecursively(); });
|
QDir dataDir(dataLocal);
|
||||||
|
dataDir.removeRecursively();
|
||||||
|
dataLocal = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||||
|
qDebug() << dataLocal;
|
||||||
|
QDir cacheDir(dataLocal);
|
||||||
|
cacheDir.removeRecursively();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
quint64 Widget::dirFileSize(const QString &path)
|
quint64 Widget::dirFileSize(const QString &path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user