Skip to content

Commit

Permalink
Merge pull request #2786 from Poobslag/controller-disconnected-messag…
Browse files Browse the repository at this point in the history
…e-bug

Bug: 'Controller Disconnected' message remained visible
  • Loading branch information
Poobslag authored Oct 11, 2024
2 parents db35a59 + f28382e commit b016157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions project/src/main/ui/settings/SettingsMenu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ custom_text = "Are you sure?
Slot A (34.2 hours)"
icon_color = Color( 1, 0.866667, 0.6, 1 )

[connection signal="hide" from="." to="ControllerUnpluggedMessage" method="_on_SettingsMenu_hide"]
[connection signal="hide" from="." to="Window/UiArea/Bottom" method="_on_SettingsMenu_hide"]
[connection signal="show" from="." to="ControllerUnpluggedMessage" method="_on_SettingsMenu_show"]
[connection signal="show" from="." to="Window/UiArea/Bottom" method="_on_SettingsMenu_show"]
Expand Down
4 changes: 4 additions & 0 deletions project/src/main/ui/settings/controller-unplugged-message.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ func _ready() -> void:
func _on_SettingsMenu_show() -> void:
# hide by default; must be explicitly shown after the settings menu
hide()


func _on_SettingsMenu_hide() -> void:
hide()

0 comments on commit b016157

Please sign in to comment.