mirror of
https://github.com/edubart/otclient.git
synced 2025-05-01 10:09:21 +02:00
Combobox wasn't getting destroyed on terminate
This caused several of those comboboxes to appear next to eachother once reloading this module (whenever you'd do anything with the *ghost* comboboxes, it errors).
This commit is contained in:
parent
73acc68e50
commit
3562fc6dbe
@ -70,6 +70,7 @@ end
|
|||||||
function Locales.terminate()
|
function Locales.terminate()
|
||||||
installedLocales = nil
|
installedLocales = nil
|
||||||
currentLocale = nil
|
currentLocale = nil
|
||||||
|
localeComboBox:destroy()
|
||||||
localeComboBox = nil
|
localeComboBox = nil
|
||||||
Extended.unregister(ExtendedLocales)
|
Extended.unregister(ExtendedLocales)
|
||||||
disconnect(g_game, { onGameStart = onGameStart })
|
disconnect(g_game, { onGameStart = onGameStart })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user