mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
add scrollbar to channel list, closing channels fixed
This commit is contained in:
@@ -267,14 +267,14 @@ function Console.removeCurrentTab()
|
||||
local tab = consoleTabBar:getCurrentTab()
|
||||
if tab:getText() == "Default" or tab:getText() == "Server Log" then return end
|
||||
|
||||
consoleTabBar:removeTab(tab)
|
||||
|
||||
-- notificate the server that we are leaving the channel
|
||||
if tab.channelId then
|
||||
g_game.leaveChannel(tab.channelId)
|
||||
elseif tab:getText() == "NPCs" then
|
||||
g_game.closeNpcChannel()
|
||||
end
|
||||
|
||||
consoleTabBar:removeTab(tab)
|
||||
end
|
||||
|
||||
function Console.getTab(name)
|
||||
|
||||
Reference in New Issue
Block a user