Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarBaseScriptPane.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarBaseScriptPane.cpp')
-rw-r--r--source/frontend/StarBaseScriptPane.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/frontend/StarBaseScriptPane.cpp b/source/frontend/StarBaseScriptPane.cpp
index 6db092d..7facc1c 100644
--- a/source/frontend/StarBaseScriptPane.cpp
+++ b/source/frontend/StarBaseScriptPane.cpp
@@ -90,7 +90,8 @@ void BaseScriptPane::tick(float dt) {
bool BaseScriptPane::sendEvent(InputEvent const& event) {
// Intercept GuiClose before the canvas child so GuiClose always closes
// BaseScriptPanes without having to support it in the script.
- if (context()->actions(event).contains(InterfaceAction::GuiClose)) {
+ if (context()->actions(event).contains(InterfaceAction::GuiClose)
+ && m_config.getBool("dismissable", true)) {
dismiss();
return true;
}