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

@@ -31,6 +31,7 @@ namespace Bloom::Events
PROGRAMMING_MODE_ENABLED,
PROGRAMMING_MODE_DISABLED,
INSIGHT_ACTIVATION_REQUESTED,
INSIGHT_MAIN_WINDOW_CLOSED,
};
class Event

View File

@@ -21,6 +21,7 @@
#ifndef EXCLUDE_INSIGHT
#include "InsightActivationRequested.hpp"
#include "InsightMainWindowClosed.hpp"
#endif
namespace Bloom::Events

View File

@@ -0,0 +1,23 @@
#pragma once
#include <string>
#include "Event.hpp"
namespace Bloom::Events
{
class InsightMainWindowClosed: public Event
{
public:
static constexpr EventType type = EventType::INSIGHT_MAIN_WINDOW_CLOSED;
static const inline std::string name = "InsightMainWindowClosed";
[[nodiscard]] EventType getType() const override {
return InsightMainWindowClosed::type;
}
[[nodiscard]] std::string getName() const override {
return InsightMainWindowClosed::name;
}
};
}