MCPcopy Create free account
hub / github.com/KDE/labplot / clearCache

Method clearCache

src/frontend/SettingsDatasetsPage.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void SettingsDatasetsPage::clearCache() {
104 QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QLatin1String("/datasets_local/"));
105 if (dir.exists()) {
106 dir.removeRecursively();
107 dir.mkpath(dir.path());
108
109 ui.lFiles->setText(i18n("Files - 0"));
110 ui.lSize->setText(i18n("Total size - 0B"));
111 ui.bClearCache->setEnabled(false);
112 QMessageBox::information(this, i18n("Datasets cache"), i18n("Downloaded files successfully deleted."));
113 }
114}

Callers

nothing calls this directly

Calls 4

existsMethod · 0.80
pathMethod · 0.45
setTextMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected