mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
Fix characterlist being destroyed on ESC pressed closes #93
Signed-off-by: otfallen <f.fallen45@gmail.com>
This commit is contained in:
@@ -171,7 +171,7 @@ end
|
||||
|
||||
function CharacterList.create(characters, account, otui)
|
||||
if not otui then otui = 'characterlist.otui' end
|
||||
|
||||
|
||||
if charactersWindow then
|
||||
charactersWindow:destroy()
|
||||
end
|
||||
@@ -243,7 +243,7 @@ function CharacterList.destroy()
|
||||
end
|
||||
|
||||
function CharacterList.show()
|
||||
if not loadBox and not errorBox and charactersWindow then
|
||||
if not loadBox and not errorBox then
|
||||
charactersWindow:show()
|
||||
charactersWindow:raise()
|
||||
charactersWindow:focus()
|
||||
|
Reference in New Issue
Block a user