Fixed bug with Insight window close event being issued twice

This commit is contained in:
Nav
2022-02-06 20:29:31 +00:00
parent d20db03311
commit 56fae9e0a8

View File

@@ -155,7 +155,9 @@ namespace Bloom
}
Logger::info("Shutting down Insight");
this->mainWindow->close();
if (this->mainWindow->isVisible()) {
this->mainWindow->close();
}
if (this->workerThread != nullptr && this->workerThread->isRunning()) {
this->workerThread->quit();