Delete instaces tmp diectory on startup
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
f15981d786
commit
d795ba25e7
1 changed files with 6 additions and 0 deletions
|
@ -1209,6 +1209,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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue