Added shutdownOnClose Insight config param, to trigger a shutdown when the user closes the main Insight window.

This commit is contained in:
Nav
2023-07-14 18:39:27 +01:00
parent edcf62e67d
commit bc4939e48f
9 changed files with 56 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
#include "src/Services/PathService.hpp"
#include "src/Logger/Logger.hpp"
#include "src/EventManager/EventManager.hpp"
#include "UserInterfaces/InsightWindow/BloomProxyStyle.hpp"
#include "src/Application.hpp"
@@ -204,6 +205,7 @@ namespace Bloom
void Insight::onInsightWindowDestroyed() {
this->mainWindow = nullptr;
EventManager::triggerEvent(std::make_shared<Events::InsightMainWindowClosed>());
}
void Insight::onTargetStoppedEvent(const Events::TargetExecutionStopped& event) {