projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b22de64
)
Fix holding down F10 (open console) causing GUI to freeze
author
Craig Robbins
<kde.psych@gmail.com>
Wed, 4 May 2016 11:21:13 +0000
(21:21 +1000)
committer
Craig Robbins
<kde.psych@gmail.com>
Wed, 4 May 2016 11:31:23 +0000
(21:31 +1000)
src/guiChatConsole.cpp
patch
|
blob
|
history
diff --git
a/src/guiChatConsole.cpp
b/src/guiChatConsole.cpp
index ec9d3ffdc45957dc978c3f8375f4de06816eca42..17a1689c7b2fbc90ba5fd6d3100e58530bc5d385 100644
(file)
--- a/
src/guiChatConsole.cpp
+++ b/
src/guiChatConsole.cpp
@@
-247,7
+247,9
@@
void GUIChatConsole::animate(u32 msec)
s32 goal = m_open ? m_desired_height : 0;
// Set invisible if close animation finished (reset by openConsole)
- if (!m_open && m_height == 0)
+ // This function (animate()) is never called once its visibility becomes false so do not
+ // actually set visible to false before the inhibited period is over
+ if (!m_open && m_height == 0 && m_open_inhibited == 0)
IGUIElement::setVisible(false);
if (m_height != goal)