no need to check for nil settings
Now that we only call load_settings when needed.
This commit is contained in:
parent
8ec74b2065
commit
fd533d4b01
|
@ -1,5 +1,4 @@
|
|||
on.load_settings = function(settings)
|
||||
if settings == nil then return end
|
||||
Font_height = settings.font_height
|
||||
Line_height = settings.line_height
|
||||
for _,w in ipairs(settings.words) do
|
||||
|
@ -9,4 +8,4 @@ on.load_settings = function(settings)
|
|||
Text.redraw_all(Cursor_word)
|
||||
end
|
||||
Cursor_word = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue