Skip to content

Commit

Permalink
Support ChannelTabsConfiguration Hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
BiraruX committed Jan 13, 2025
1 parent c89adcf commit 015aab1
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 @@ -80,8 +80,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 @@ -98,6 +100,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 015aab1

Please sign in to comment.