Merge pull request #2390 from Trial97/delete_tmp

Delete instaces tmp diectory on startup
This commit is contained in:
Alexandru Ionut Tripon 2024-06-09 16:03:51 +03:00 committed by GitHub
commit 3af4c94612
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1206,6 +1206,12 @@ void Application::performMainStartupAction()
qDebug() << "<> Updater started."; qDebug() << "<> Updater started.";
} }
{ // delete instances tmp dirctory
auto instDir = m_settings->get("InstanceDir").toString();
const QString tempRoot = FS::PathCombine(instDir, ".tmp");
FS::deletePath(tempRoot);
}
if (!m_urlsToImport.isEmpty()) { if (!m_urlsToImport.isEmpty()) {
qDebug() << "<> Importing from url:" << m_urlsToImport; qDebug() << "<> Importing from url:" << m_urlsToImport;
m_mainWindow->processURLs(m_urlsToImport); m_mainWindow->processURLs(m_urlsToImport);