mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 05:02:34 +00:00
Request a repaint when popping and shifting states
This commit is contained in:
@@ -141,10 +141,14 @@ module CyberarmEngine
|
|||||||
|
|
||||||
def pop_state
|
def pop_state
|
||||||
@states.pop
|
@states.pop
|
||||||
|
|
||||||
|
current_state.request_repaint if current_state&.is_a?(GuiState)
|
||||||
end
|
end
|
||||||
|
|
||||||
def shift_state
|
def shift_state
|
||||||
@states.shift
|
@states.shift
|
||||||
|
|
||||||
|
current_state.request_repaint if current_state&.is_a?(GuiState)
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_focus?
|
def has_focus?
|
||||||
|
|||||||
Reference in New Issue
Block a user