Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/game_console/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,8 @@ function toggleChat()
consoleToggleChat.isChecked = not consoleToggleChat.isChecked
if consoleToggleChat.isChecked then
consoleToggleChat:setText(tr('Chat Off'))
consoleToggleChat.isChecked = true
else
consoleToggleChat:setText(tr('Chat On'))
consoleToggleChat.isChecked = false
end
end

Expand Down Expand Up @@ -372,6 +370,8 @@ function disableChatOnCall()
if isChatEnabled() and not consoleToggleChat.isChecked then
toggleChat()
end

updateChatMode()
end

function isChatEnabled()
Expand Down Expand Up @@ -447,6 +447,7 @@ function load()
else
consoleToggleChat:setText(tr('Chat On'))
end
updateChatMode()
end
loadCommunicationSettings()
end
Expand Down
2 changes: 1 addition & 1 deletion modules/game_console/console.otui
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,4 @@ Panel
self.isChecked = true
self:setText(tr('Chat Off'))
end
@onCheckChange: updateChatMode()
updateChatMode()