Added shutdownOnClose Insight config param, to trigger a shutdown when the user closes the main Insight window.
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Bloom::Events
|
||||
PROGRAMMING_MODE_ENABLED,
|
||||
PROGRAMMING_MODE_DISABLED,
|
||||
INSIGHT_ACTIVATION_REQUESTED,
|
||||
INSIGHT_MAIN_WINDOW_CLOSED,
|
||||
};
|
||||
|
||||
class Event
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#ifndef EXCLUDE_INSIGHT
|
||||
#include "InsightActivationRequested.hpp"
|
||||
#include "InsightMainWindowClosed.hpp"
|
||||
#endif
|
||||
|
||||
namespace Bloom::Events
|
||||
|
||||
23
src/EventManager/Events/InsightMainWindowClosed.hpp
Normal file
23
src/EventManager/Events/InsightMainWindowClosed.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user