diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-23 12:12:07 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-23 12:12:07 +1000 |
commit | 0abe47ab6c3e9c64d686549e9520566f3eb44b6a (patch) | |
tree | 6455d7e250b104ec6d6f80dea5a07b894fed25db /source/frontend/StarScriptPane.cpp | |
parent | f42031dc9ee89d58232442320ae44447cd0acda5 (diff) |
slightly smarter inventory close behavior with panes that open with the inventory
Diffstat (limited to 'source/frontend/StarScriptPane.cpp')
-rw-r--r-- | source/frontend/StarScriptPane.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/frontend/StarScriptPane.cpp b/source/frontend/StarScriptPane.cpp index c98bd2c..bcd599c 100644 --- a/source/frontend/StarScriptPane.cpp +++ b/source/frontend/StarScriptPane.cpp @@ -88,6 +88,10 @@ bool ScriptPane::openWithInventory() const { return m_config.getBool("openWithInventory", false); } +bool ScriptPane::closeWithInventory() const { + return m_config.getBool("closeWithInventory", openWithInventory()); +} + EntityId ScriptPane::sourceEntityId() const { return m_sourceEntityId; } |