mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-16 02:22:22 +08:00
fix: 清除网页缓存未生效
This commit is contained in:
parent
fb4d78ce1d
commit
292d4aa5c9
@ -213,7 +213,12 @@ void SettingsPage::on_pushButton_clearWebCache_clicked()
|
||||
QtConcurrent::run([=]()
|
||||
{
|
||||
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();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user