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

Fix Chatbox on change tab name #459

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions plugins/chatbox/derma/cl_chatbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,8 @@ function PANEL:OnTabUpdated(id, filter, newID)
return
end

tab:SetFilter(filter)
self.tabs:RenameTab(id, newID)
self.tabs:AddTab(newID, filter)
self.tabs:RemoveTab(id)

PLUGIN:SaveTabs()
end
Expand Down
2 changes: 1 addition & 1 deletion plugins/chatbox/derma/cl_chatboxcustomize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ end
function PANEL:CreateClicked()
local name = self.tab and self.tab or self.name:GetValue()

if (self.tab != self.name:GetValue() and PLUGIN:TabExists(name)) then
if (self.tab != self.name:GetValue() and PLUGIN:TabExists(self.name:GetValue())) then
ix.util.Notify(L("chatTabExists"))
return
end
Expand Down