This commit is contained in:
yangjiaxuan 2023-01-11 19:03:54 +08:00
parent 19e3b06991
commit 5edf4c8532
1 changed files with 3 additions and 2 deletions

View File

@ -2459,8 +2459,9 @@ void MainWindow::closeEvent(QCloseEvent *e)
} }
} }
QDir dir = QDir(Dialog_ClrCache::getCachePath()); QString cachePath = Dialog_ClrCache::getCachePath();
if (dir.exists()) QDir dir = QDir(cachePath);
if (dir.exists() && (cachePath.endsWith("Cache/") || cachePath.endsWith("Cache\\")));
dir.removeRecursively(); dir.removeRecursively();
m_versionDll->PostUserCloseInfo(HGVERSION_APPNAME_SCANNER); m_versionDll->PostUserCloseInfo(HGVERSION_APPNAME_SCANNER);