mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-29 15:12:21 +08:00
fix: 清除网页缓存未生效
This commit is contained in:
parent
fb4d78ce1d
commit
292d4aa5c9
@ -213,7 +213,12 @@ void SettingsPage::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;
|
||||||
|
QDir dataDir(dataLocal);
|
||||||
|
dataDir.removeRecursively();
|
||||||
|
dataLocal = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||||
|
qDebug() << dataLocal;
|
||||||
|
QDir cacheDir(dataLocal);
|
||||||
cacheDir.removeRecursively();
|
cacheDir.removeRecursively();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user