Skip to content

Commit

Permalink
Support ChannelTabsConfiguration hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
littletsu committed Jan 5, 2025
1 parent 442f98f commit 0d44b24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cmdr/CmdrClient/CmdrInterface/Window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ function Window:SetVisible(visible)
if visible then
self.PreviousChatWindowConfigurationEnabled = TextChatService.ChatWindowConfiguration.Enabled
self.PreviousChatInputBarConfigurationEnabled = TextChatService.ChatInputBarConfiguration.Enabled
self.PreviousChannelTabsConfigurationEnabled = TextChatService.ChannelTabsConfiguration.Enabled
TextChatService.ChatWindowConfiguration.Enabled = false
TextChatService.ChatInputBarConfiguration.Enabled = false
TextChatService.ChannelTabsConfiguration.Enabled = false

Entry.TextBox:CaptureFocus()
self:SetEntryText("")
Expand All @@ -97,6 +99,9 @@ function Window:SetVisible(visible)
~= nil
then self.PreviousChatInputBarConfigurationEnabled
else true
TextChatService.ChannelTabsConfiguration.Enabled = if self.PreviousChannelTabsConfigurationEnabled ~= nil
then self.PreviousChannelTabsConfigurationEnabled
else true

Entry.TextBox:ReleaseFocus()
self.AutoComplete:Hide()
Expand Down

0 comments on commit 0d44b24

Please sign in to comment.