mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Keep g_settings as a 'static' variable rather than a direct object.
This commit is contained in:
@@ -178,11 +178,11 @@ end
|
||||
function save()
|
||||
local settings = {}
|
||||
settings.splitterMarginBottom = bottomSplitter:getMarginBottom()
|
||||
g_settings:setNode('game_interface', settings)
|
||||
g_settings.setNode('game_interface', settings)
|
||||
end
|
||||
|
||||
function load()
|
||||
local settings = g_settings:getNode('game_interface')
|
||||
local settings = g_settings.getNode('game_interface')
|
||||
if settings then
|
||||
if settings.splitterMarginBottom then
|
||||
bottomSplitter:setMarginBottom(settings.splitterMarginBottom)
|
||||
|
Reference in New Issue
Block a user