Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ChannelTabsConfiguration hiding #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 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
Loading